From 4fe144de352434ff6e98a4269777b82e8b03f4d0 Mon Sep 17 00:00:00 2001 From: Seppe Degryse <80254822+Griezn@users.noreply.github.com> Date: Thu, 8 Jun 2023 08:13:08 +0200 Subject: Replaced hand-escaped JSON (#5508) --- src/JsonUtils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/JsonUtils.h') diff --git a/src/JsonUtils.h b/src/JsonUtils.h index d315dbed8..fc35e9f0a 100644 --- a/src/JsonUtils.h +++ b/src/JsonUtils.h @@ -14,4 +14,7 @@ AString WriteStyledString(const Json::Value & a_Root); bool ParseString(const AString & a_JsonStr, Json::Value & a_Root, AString * a_ErrorMsg = nullptr); +/** Creates a Json string representing an object with the specified single value. */ +extern AString SerializeSingleValueJsonObject(const AString & a_Key, const AString & a_Value); + } -- cgit v1.2.3