mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
parent
a546a67934
commit
9ecfd9c830
@ -333,6 +333,7 @@ Value icinga::JsonDecode(const String& data)
|
|||||||
#else /* YAJL_MAJOR */
|
#else /* YAJL_MAJOR */
|
||||||
handle = yajl_alloc(&callbacks, NULL, &context);
|
handle = yajl_alloc(&callbacks, NULL, &context);
|
||||||
yajl_config(handle, yajl_dont_validate_strings, 1);
|
yajl_config(handle, yajl_dont_validate_strings, 1);
|
||||||
|
yajl_config(handle, yajl_allow_comments, 1);
|
||||||
#endif /* YAJL_MAJOR */
|
#endif /* YAJL_MAJOR */
|
||||||
|
|
||||||
yajl_parse(handle, reinterpret_cast<const unsigned char *>(data.CStr()), data.GetLength());
|
yajl_parse(handle, reinterpret_cast<const unsigned char *>(data.CStr()), data.GetLength());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user