You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio/modules/json
Victor Seva 4a31eece25
upstream 4.0.1 version. No sipwise patches.
13 years ago
..
doc upstream 4.0.1 version. No sipwise patches. 13 years ago
Makefile upstream 4.0.1 version. No sipwise patches. 13 years ago
README upstream 4.0.1 version. No sipwise patches. 13 years ago
json_funcs.c upstream 4.0.1 version. No sipwise patches. 13 years ago
json_funcs.h update to 3.3.0 from upstream 14 years ago
json_mod.c update to 3.3.0 from upstream 14 years ago

README

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. Parameters

              3.1.

        4. Functions

              4.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. Parameters

        3.1.

   4. Functions

        4.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. Parameters

   3.1.

   None

4. Functions

   4.1. json_get_field(json_string, field_name, destination)

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