<matthew@flowroute.com>
Copyright © 2011 Flowroute LLC (flowroute.com)
Table of Contents
json_get_field(json_string, field_name, destination)
List of Examples
json_get_field
This module provides operations on json strings.
The following modules must be loaded before this module:
None
The following libraries or applications must be installed before running Kamailio with this module loaded:
libjson (http://metaparadigm.com/json-c/)
Copy field 'field_name' from json object 'json_string' and store it in pvar 'destination'.
Example 1.1. json_get_field usage
... json_get_field("{'foo':'bar'}", "foo", "$var(foo)"); xlog("foo is $var(foo)"); ...