diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-03 22:43:15 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-03 22:43:15 +0300 |
commit | 654aba9d146fa931628790e2b16c5ca0f28907b3 (patch) | |
tree | c0d15a8c186e7ab1a5ec7135ada6e70f7480e17f /libs/libjson/src/internalJSONNode.cpp | |
parent | a0ad33a285bac4d7f0ad3f29c9edc925e8c1429e (diff) |
libjson:
- fix for printing null fields;
- fix for passing NULL_PARAM & JSON_PARAM
Diffstat (limited to 'libs/libjson/src/internalJSONNode.cpp')
-rw-r--r-- | libs/libjson/src/internalJSONNode.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/libjson/src/internalJSONNode.cpp b/libs/libjson/src/internalJSONNode.cpp index 7cee25f27a..1b51582db2 100644 --- a/libs/libjson/src/internalJSONNode.cpp +++ b/libs/libjson/src/internalJSONNode.cpp @@ -36,6 +36,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. lots of copies, but since strings are copy on write, this assignment
is much faster
*/
+
+const json_string CONST_NULL(JSON_TEXT("null"));
+
static const json_string CONST_TRUE(JSON_TEXT("true"));
static const json_string CONST_FALSE(JSON_TEXT("false"));
|