]> git.corax.cc Git - toolbox/commit
include/json: Allow arrays, objects as input to json_array() and json_object()
authorMatthias Kruk <matthias.kruk@miraclelinux.com>
Fri, 21 May 2021 06:39:19 +0000 (15:39 +0900)
committerMatthias Kruk <matthias.kruk@miraclelinux.com>
Fri, 21 May 2021 06:39:19 +0000 (15:39 +0900)
commit948a3a179904b7b15aed6b8c1b988d3e7fcdf01c
tree447e4cae7077251b6d11ac3ddc9b082a12b2643e
parent2560f550a6a218caceaf77ece56e5cbcef35c045
include/json: Allow arrays, objects as input to json_array() and json_object()

The json_array() and json_object() functions currently can only be used
to construct arrays and objects containing strings and integers.
This commit modifies the functions so that they can also encode objects
and arrays within objects and arrays.
include/json.sh