Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kazoo : add json keys function and escape character #200

Merged
merged 1 commit into from Jun 10, 2015
Merged

Conversation

lazedo
Copy link
Contributor

@lazedo lazedo commented Jun 10, 2015

json in the form of

{ "Nodes" : {
"mynode@my.tld.com" : { ... },
"myothernode@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

json in the form of

{ "Nodes" :  {
       "mynode@my.tld.com" : { ... },
       "myothernode@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
lazedo added a commit that referenced this pull request Jun 10, 2015
kazoo : add json keys function and escape character
@lazedo lazedo merged commit e9e0298 into master Jun 10, 2015
@lazedo lazedo deleted the kazoo_json branch June 10, 2015 11:33
@kamailio-sync
Copy link

https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/

Build broken
On 10 Jun 2015 13:33, "lazedo" notifications@github.com wrote:

Merged #200 #200.


Reply to this email directly or view it on GitHub
#200 (comment).


sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants