Commit Graph

3 Commits (d1d6c6e2214103e88765ca04797896b4ab33d001)

Author SHA1 Message Date
Jo-Philipp Wich 0c9999e010 jsonfilter: implement custom separators and support limiting the results, fix handling of negative array indices
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41280 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-19 15:30:59 +00:00
Jo-Philipp Wich f282f01cd8 jsonfilter: improve error reporting
The CLI now describes expression errors more precisely, e.g.:

  Syntax error: Invalid escape sequence
  In expression @["foo\x"]
  Near here ----------^

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41266 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-19 07:56:24 +00:00
Jo-Philipp Wich a586bc77e7 jsonpath: rename to jsonfilter and rewrite from flex/bison to lemon
This commit renames the jsonpath binary to jsonfilter to avoid clashing with a Python
extension of the same name.

The utility itself has been rewritten to use SQLite3's lemon parser generator instead
of a flex/bison combination which results in a much smaller binary.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41258 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 10:10:30 +00:00