Skip to content
This repository has been archived by the owner on May 10, 2020. It is now read-only.

ab-5v/jpath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jpath

XPath for JSON with yate-friendly syntax.

Instalation

Node

npm install jpath

Browser

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

Usage

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

More examples: tests

About

XPath for JSON with yate template engine taste

Resources

Stars

Watchers

Forks

Packages

No packages published