/usr/share/doc/kamailio/modules/README.json is in kamailio-json-modules 5.1.2-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | JSON Module
Matthew Williams
<matthew@flowroute.com>
Edited by
Matthew Williams
<matthew@flowroute.com>
Copyright © 2011 Flowroute LLC (flowroute.com)
__________________________________________________________________
Table of Contents
1. Admin Guide
1. Overview
2. Dependencies
2.1. Kamailio Modules
2.2. External Libraries or Applications
3. Functions
3.1. json_get_field(json_string, field_name, destination)
List of Examples
1.1. json_get_field usage
Chapter 1. Admin Guide
Table of Contents
1. Overview
2. Dependencies
2.1. Kamailio Modules
2.2. External Libraries or Applications
3. Functions
3.1. json_get_field(json_string, field_name, destination)
1. Overview
This is a simple module allowing to retrieve values from a JSON string.
For more complex operations with JSON documents, see the JANSSON
module.
2. Dependencies
2.1. Kamailio Modules
2.2. External Libraries or Applications
2.1. Kamailio Modules
The following modules must be loaded before this module:
* None
2.2. External Libraries or Applications
The following libraries or applications must be installed before
running Kamailio with this module loaded:
* libjson (https://github.com/json-c/json-c/wiki)
3. Functions
3.1. json_get_field(json_string, field_name, destination)
3.1. json_get_field(json_string, field_name, destination)
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)");
...
|