From 654aba9d146fa931628790e2b16c5ca0f28907b3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 3 Jan 2018 22:43:15 +0300 Subject: libjson: - fix for printing null fields; - fix for passing NULL_PARAM & JSON_PARAM --- libs/libjson/src/internalJSONNode.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libs/libjson/src/internalJSONNode.cpp') 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")); -- cgit v1.2.3