0.0.20 • Published 10 years ago

jpath v0.0.20

Weekly downloads
21
License
-
Repository
github
Last release
10 years ago

jpath

XPath for JSON with yate-friendly syntax.

Instalation

Node

npm install jpath

Browser

<script src="./jpath.min.js"></script>

Usage

jpath(json, '/.foo.bar');
jpath(json, '/.foo[3]');
jpath(json, '/.foo[.bar]');
jpath(json, '/.foo[.bar == "3"].lop');
jpath(json, '/.foo[!.bar && .lop]');
jpath(json, '/.foo[. == "1" || .lop != "bar"]');

More examples: tests

0.0.20

10 years ago

0.0.18

12 years ago

0.0.17

12 years ago

0.0.16

12 years ago