Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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.

Getting Started

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");

Resources

About

Eases JSON navigation using the JSONPath syntax as described in RFC 9535

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp