From: Gunnar Beutner Date: Mon, 17 Aug 2015 06:03:25 +0000 (+0200) Subject: Allow comments in JSON X-Git-Tag: v2.4.0~413 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ecfd9c830a5103b5b1f8dcbae7038dd95ade8d7;p=icinga2 Allow comments in JSON fixes #9919 --- diff --git a/lib/base/json.cpp b/lib/base/json.cpp index 7bdda7b92..a2bd25631 100644 --- a/lib/base/json.cpp +++ b/lib/base/json.cpp @@ -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(data.CStr()), data.GetLength());