Weave Code
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

Laravel-friendly JSONPath implementation for querying and extracting data from JSON and PHP arrays. Supports common JSONPath syntax to filter, traverse, and select values, making it easy to work with complex API responses and nested documents.

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests