[sr-dev] [kamailio] kazoo : add json keys function and escape character (#200)

lazedo notifications at github.com
Wed Jun 10 13:13:58 CEST 2015


json in the form of

{ "Nodes" :  {
       "mynode at my.tld.com" : { ... },
       "myothernode at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150610/8253c43f/attachment-0001.html>


More information about the sr-dev mailing list