Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sh
AgeCommit message (Collapse)Author
2013-01-17rename internal variables in json_get_typeLuka Perkov
Signed-off-by: Luka Perkov <luka@openwrt.org>
2013-01-04sanitize json_get_type functionLuka Perkov
Signed-off-by: Luka Perkov <luka@openwrt.org>
2012-12-18jshn: fix check to reset array sequence counters on cleanupFelix Fietkau
2012-12-17jshn: introduce json_is_a() convenience function to check field types ↵Jo-Philipp Wich
without using a temporary variable
2012-12-16jshn: fix array handlingFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-16jshn: fix some variable handling regressionsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-16jshn: add support for namespacesFelix Fietkau
Can be used to fix variable namespace clashes in library code using jshn Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-05-30sh/jshn.sh: fix json_get_var() and json_get_type() to not return cached valuesJo-Philipp Wich
2012-05-29sh/jshn.sh: replace "tr" calls with inline substitution, signalize success ↵Jo-Philipp Wich
with return values
2012-05-17sh/jshn.sh: fix allowing numbers in identifiersFelix Fietkau
json_add_generic() needs to handle them as well
2012-05-16sh/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-14jshn.sh: add json_get_vars() wrapper functionFelix Fietkau
2011-09-11same for json_get_varFelix Fietkau
2011-09-11jshn: support using characters in elements that do not conform to shell ↵Felix Fietkau
variable restrictions
2011-08-12jshn: clear more variables on json_init, fix adding array elementsFelix Fietkau
2011-05-31jshn: add an option for printing the json data without a terminating newlineFelix Fietkau
2011-05-24jshn: fix invalid variable reuseFelix Fietkau
2011-05-24jshn: do not use -n on exportFelix Fietkau
2011-05-24add jshnFelix Fietkau