]> git.corax.cc Git - toolbox/commit
include/json: Add json_object_get() function
authorMatthias Kruk <m@m10k.eu>
Sun, 4 Jul 2021 23:01:01 +0000 (08:01 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 4 Jul 2021 23:01:01 +0000 (08:01 +0900)
commit31a28850334fb26bd6e8a61f057ea5b72c294627
treeeef895a2bd1d74d48f42220ec8e574e713475e10
parent0ab42e200b1606cace3ddea2775461e8de0fae48
include/json: Add json_object_get() function

The json module doesn't provide any functions to retrieve data from
within JSON types, requiring users to call jq (or other parsers)
directly.
This commit adds the json_object_get() function, which allows the user
to retrieve the value of a field in a JSON object.
include/json.sh