mirror of https://github.com/Icinga/icinga2.git
parent
6cadde82bd
commit
5321bc4643
|
@ -340,6 +340,7 @@ Value icinga::JsonDecode(const String& data)
|
||||||
handle = yajl_alloc(&callbacks, &cfg, NULL, &context);
|
handle = yajl_alloc(&callbacks, &cfg, NULL, &context);
|
||||||
#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);
|
||||||
#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…
Reference in New Issue