Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Jsonpath Laravel Package

peekmo/jsonpath

peekmo/jsonpath adds JSONPath querying to PHP/Laravel, letting you select, filter, and extract values from complex JSON/arrays using familiar JSONPath expressions. Useful for API responses, config inspection, and transforming nested data quickly.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature Development: Enables rapid implementation of JSON query capabilities (e.g., filtering, extracting nested data) without building custom parsers, reducing dev time for APIs, data pipelines, or admin dashboards.
  • Roadmap Prioritization: Justifies investing in JSON-centric features (e.g., dynamic data visualization, conditional workflows) by leveraging existing standards (JSONPath) for consistency with tools like Postman or JavaScript.
  • Build vs. Buy: Avoids reinventing JSONPath parsing logic, saving engineering resources for higher-value differentiation (e.g., domain-specific query extensions).
  • Use Cases:
    • Data Transformation: Extract/transform nested JSON fields in ETL pipelines.
    • APIs: Validate/reshape responses dynamically (e.g., for legacy system compatibility).
    • Admin Tools: Build query builders for users to inspect complex JSON configs (e.g., Kubernetes manifests).
    • Testing: Assert specific paths in API responses without hardcoding full objects.

When to Consider This Package

Adopt if:

  • Your stack is PHP/Laravel and you need lightweight, standards-compliant JSONPath support.
  • You’re working with legacy systems requiring JSONPath for interoperability (e.g., migrating from XML).
  • Your team lacks bandwidth to maintain a custom parser or integrate a heavier library (e.g., jsonpath-php with active maintenance).
  • You prioritize simplicity over modern features (e.g., no support for JSONPath+ or streaming large files).

Look elsewhere if:

  • You need active maintenance (last release: 2014) or modern JSONPath features (e.g., array slices, union operators).
  • Your data is extremely large (no streaming support; may load entire JSON into memory).
  • You’re using non-PHP languages or need cross-language consistency (consider go-jsonpath or jsonpath-js).
  • Compliance with MIT license is a concern (though unlikely given its permissiveness).

How to Pitch It (Stakeholders)

For Executives: "This package lets us add JSON query capabilities to our [product] with minimal engineering lift. For example, we could enable users to filter API responses dynamically or validate complex configs—features that competitors might require custom development for. Since it’s based on a widely adopted standard (JSONPath), it integrates seamlessly with tools our team already uses. The trade-off is that it’s not actively maintained, but given its simplicity and our PHP stack, the risk is low for our near-term needs."

For Engineering: *"Peekmo’s JSONPath implementation is a drop-in solution for parsing nested JSON in PHP. It’s lightweight (~70 stars, MIT licensed) and aligns with the Stefan Goessner spec, so we avoid reinventing the wheel. Key limitations: no modern JSONPath+ features or streaming, but it’s sufficient for:

  • API response validation (e.g., $.store.book[?(@.price < 10)]).
  • Data extraction in Laravel services (e.g., JsonPath::search($data, '$.user.settings')).
  • Legacy system integration where JSONPath is a requirement. To mitigate risks, we can:
  1. Wrap it in a service layer to isolate changes if needed.
  2. Monitor for forks with active maintenance (e.g., this one).
  3. Use it as a prototype to validate demand before investing in a heavier solution."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table