[OpenSIPS-Devel] [OpenSIPS/opensips] 0391c0: json: support iteration over $json
Vlad Patrascu
vladp at opensips.org
Tue Oct 9 13:28:33 EDT 2018
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 0391c0433a4c7454094e444304a1e58c5c3b999e
https://github.com/OpenSIPS/opensips/commit/0391c0433a4c7454094e444304a1e58c5c3b999e
Author: Vlad Patrascu <vladp at opensips.org>
Date: 2018-10-09 (Tue, 09 Oct 2018)
Changed paths:
M modules/json/doc/json_admin.xml
M modules/json/json.c
Log Message:
-----------
json: support iteration over $json
The new features are:
* iteration over $json object keys
eg. 'for ($var(k) in $(json(foo.keys)[*]))'
* iteration over $json object values
eg. 'for ($var(v) in $(json(foo.values)[*]))' or
'for ($var(v) in $(json(foo)[*]))'
* iteration over $json array values
eg. 'for ($var(v) in $(json(foo)[*]))'
Closes #1458
Commit: dfa727713195e8a1a83cd4bf4f144793b7f28e86
https://github.com/OpenSIPS/opensips/commit/dfa727713195e8a1a83cd4bf4f144793b7f28e86
Author: Vlad Patrascu <vladp at opensips.org>
Date: 2018-10-09 (Tue, 09 Oct 2018)
Changed paths:
M action.c
M cfg.y
M modules/json/json.c
Log Message:
-----------
Fix detection of the $json pseudo variable type
This fixes incorrectly thrown parsing errors for the json_link() module
function and also when using $json iterators in foreach statements.
Compare: https://github.com/OpenSIPS/opensips/compare/94a3ede1e276...dfa727713195
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the Devel
mailing list