[sr-dev] git:5.1:5041f348: json: docs - more details about the result of json_get_field()

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 27 13:12:04 CET 2018


Module: kamailio
Branch: 5.1
Commit: 5041f3483ee9d579e144f77f5e43e1e406121e8a
URL: https://github.com/kamailio/kamailio/commit/5041f3483ee9d579e144f77f5e43e1e406121e8a

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-02-27T13:11:41+01:00

json: docs - more details about the result of json_get_field()

- reported by GH #1542

(cherry picked from commit 6a64100105e7ac0ae8a952a2e3770d7534615796)

---

Modified: src/modules/json/doc/json_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/5041f3483ee9d579e144f77f5e43e1e406121e8a.diff
Patch: https://github.com/kamailio/kamailio/commit/5041f3483ee9d579e144f77f5e43e1e406121e8a.patch

---

diff --git a/src/modules/json/doc/json_admin.xml b/src/modules/json/doc/json_admin.xml
index 2a96304647..cede6fd016 100644
--- a/src/modules/json/doc/json_admin.xml
+++ b/src/modules/json/doc/json_admin.xml
@@ -63,6 +63,12 @@
 	    <para>
 		Copy field 'field_name' from json object 'json_string' and store it in pvar 'destination'.
 		</para>
+		<para>
+		Note that the result is the string representation of that JSON filed.
+		For example, if you want to retrieve a field that has a string value,
+		then the result is the value enclosed in quotes. If the field value is a structure,
+		then the result is the string-formatted representation of that structure.
+		</para>
 		<example>
 		<title><function>json_get_field</function> usage</title>
 		<programlisting format="linespecific">




More information about the sr-dev mailing list