Allow comments in JSON

fixes #9919
This commit is contained in:
Gunnar Beutner 2015-08-17 08:03:25 +02:00
parent a546a67934
commit 9ecfd9c830
1 changed files with 1 additions and 0 deletions

View File

@ -333,6 +333,7 @@ Value icinga::JsonDecode(const String& data)
#else /* YAJL_MAJOR */
handle = yajl_alloc(&callbacks, NULL, &context);
yajl_config(handle, yajl_dont_validate_strings, 1);
yajl_config(handle, yajl_allow_comments, 1);
#endif /* YAJL_MAJOR */
yajl_parse(handle, reinterpret_cast<const unsigned char *>(data.CStr()), data.GetLength());