Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-01-17 | rename internal variables in json_get_type | Luka Perkov | |
Signed-off-by: Luka Perkov <luka@openwrt.org> | |||
2013-01-04 | sanitize json_get_type function | Luka Perkov | |
Signed-off-by: Luka Perkov <luka@openwrt.org> | |||
2012-12-18 | jshn: fix check to reset array sequence counters on cleanup | Felix Fietkau | |
2012-12-17 | jshn: introduce json_is_a() convenience function to check field types ↵ | Jo-Philipp Wich | |
without using a temporary variable | |||
2012-12-16 | jshn: fix array handling | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2012-12-16 | jshn: fix some variable handling regressions | Felix Fietkau | |
Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2012-12-16 | jshn: add support for namespaces | Felix Fietkau | |
Can be used to fix variable namespace clashes in library code using jshn Signed-off-by: Felix Fietkau <nbd@openwrt.org> | |||
2012-05-30 | sh/jshn.sh: fix json_get_var() and json_get_type() to not return cached values | Jo-Philipp Wich | |
2012-05-29 | sh/jshn.sh: replace "tr" calls with inline substitution, signalize success ↵ | Jo-Philipp Wich | |
with return values | |||
2012-05-17 | sh/jshn.sh: fix allowing numbers in identifiers | Felix Fietkau | |
json_add_generic() needs to handle them as well | |||
2012-05-16 | sh/jshn.sh: allow numbers in identifiers for json_get_var() | Jo-Philipp Wich | |
When traversing arrays of tables or arrays of array it is required to call json_select # where # is the index of the array item to select. Internally json_select() calls json_get_var() to obtain the correct prefix to populate $JSON_CUR with. However, the "tr" call in json_get_var() incorrectly replaces all digits with underscores, making any lookup for numeric array items fail. The attached patch changes the "tr" expression to allow digits and thus implements the expected behaviour for nested arrays. | |||
2012-05-14 | jshn.sh: add json_get_vars() wrapper function | Felix Fietkau | |
2011-09-11 | same for json_get_var | Felix Fietkau | |
2011-09-11 | jshn: support using characters in elements that do not conform to shell ↵ | Felix Fietkau | |
variable restrictions | |||
2011-08-12 | jshn: clear more variables on json_init, fix adding array elements | Felix Fietkau | |
2011-05-31 | jshn: add an option for printing the json data without a terminating newline | Felix Fietkau | |
2011-05-24 | jshn: fix invalid variable reuse | Felix Fietkau | |
2011-05-24 | jshn: do not use -n on export | Felix Fietkau | |
2011-05-24 | add jshn | Felix Fietkau | |