Daniel-Constantin Mierla 418e51d8d5 json: replaced use of obsolete function json_object_object_get() 9 年之前
..
doc c97c762a00 json: remove empty parameters section from docs 11 年之前
.gitignore 580afbaa92 Added json module, providing a simple json parser. 14 年之前
Makefile c290e58b7f json|jsonrpc-c: fix detection of json-c lib 11 年之前
README c97c762a00 json: remove empty parameters section from docs 11 年之前
json_funcs.c 418e51d8d5 json: replaced use of obsolete function json_object_object_get() 9 年之前
json_funcs.h 9e1ff4488a all: updated FSF address in GPL text 11 年之前
json_mod.c a1b6093aae json: fixed parameter number for free fixup function 11 年之前

README

JSON Module

Matthew Williams



Edited by

Matthew Williams



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 module provides operations on json strings.

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)");
...