Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
Eases JSON navigation using the JSONPath syntax as described in RFC 9535
License
NotificationsYou must be signed in to change notification settings
symfony/json-path
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The JsonPath component eases JSON navigation using the JSONPath syntax as described inRFC 9535.
This Component is experimental.Experimental featuresare not covered by Symfony'sBackward Compatibility Promise.
composer require symfony/json-path
useSymfony\Component\JsonPath\JsonCrawler;$json = <<<'JSON'{"store": {"book": [ {"category": "reference", "author": "Nigel Rees", "title": "Sayings", "price": 8.95}, {"category": "fiction", "author": "Evelyn Waugh", "title": "Sword", "price": 12.99}]}}JSON;$crawler =newJsonCrawler($json);$result =$crawler->find('$.store.book[0].title');$result =$crawler->find('$.store.book[?match(@.author, "[A-Z].*el.+")]');$result =$crawler->find("$.store.book[?(@.category == 'fiction')].title");
About
Eases JSON navigation using the JSONPath syntax as described in RFC 9535
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.