Commit Graph

3 Commits (1d9497292575b5c0ada993073b1f4b00bcf66e28)

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

SVN-Revision: 41280
10 years ago
Jo-Philipp Wich 766643c79e 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>

SVN-Revision: 41266
10 years ago
Jo-Philipp Wich a5ca7a3dd9 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>

SVN-Revision: 41258
10 years ago