Cuberite
A lightweight, fast and extensible game server for Minecraft
JsonUtils.h
Go to the documentation of this file.
1 #pragma once
2 
3 // fwd:
4 namespace Json
5 {
6 class Value;
7 }
8 
9 namespace JsonUtils
10 {
11 
12 AString WriteFastString(const Json::Value & a_Root);
13 AString WriteStyledString(const Json::Value & a_Root);
14 
15 bool ParseString(const AString & a_JsonStr, Json::Value & a_Root, AString * a_ErrorMsg = nullptr);
16 
18 extern AString SerializeSingleValueJsonObject(const AString & a_Key, const AString & a_Value);
19 
20 }
std::string AString
Definition: StringUtils.h:11
Definition: Inventory.h:11
AString SerializeSingleValueJsonObject(const AString &a_Key, const AString &a_Value)
Creates a Json string representing an object with the specified single value.
Definition: JsonUtils.cpp:47
AString WriteStyledString(const Json::Value &a_Root)
Definition: JsonUtils.cpp:24
AString WriteFastString(const Json::Value &a_Root)
Definition: JsonUtils.cpp:12
bool ParseString(const AString &a_JsonStr, Json::Value &a_Root, AString *a_ErrorMsg)
Definition: JsonUtils.cpp:34