json in the form of
{ "Nodes" : {
"mynode(a)my.tld.com" : { ... },
"myothernode(a)my.tld.com" : { ...}
}
}
doesn't have an easy to fetch the keys (it works already if it is an array)
kazoo_json_keys retrieves the keys to an avp
when querying inner fields in the form xx.yy.zzz
if one of xx / yy / zzz contains a dot (.) we cannot determine the field correctly.
use "json_escape_char" param value to encode the value before querying json and
kazoo_json will decode using the same character
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/200
-- Commit Summary --
* kazoo : add json keys function and escape character
-- File Changes --
M modules/kazoo/kazoo.c (6)
M modules/kazoo/kz_json.c (95)
M modules/kazoo/kz_json.h (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/200.patch
https://github.com/kamailio/kamailio/pull/200.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/200