Cuberite
A lightweight, fast and extensible game server for Minecraft
Functions
JsonUtils Namespace Reference

Functions

bool ParseString (const AString &a_JsonStr, Json::Value &a_Root, AString *a_ErrorMsg)
 
AString SerializeSingleValueJsonObject (const AString &a_Key, const AString &a_Value)
 Creates a Json string representing an object with the specified single value. More...
 
AString WriteFastString (const Json::Value &a_Root)
 
AString WriteStyledString (const Json::Value &a_Root)
 

Function Documentation

◆ ParseString()

bool JsonUtils::ParseString ( const AString a_JsonStr,
Json::Value &  a_Root,
AString a_ErrorMsg 
)

Definition at line 34 of file JsonUtils.cpp.

◆ SerializeSingleValueJsonObject()

AString JsonUtils::SerializeSingleValueJsonObject ( const AString a_Key,
const AString a_Value 
)

Creates a Json string representing an object with the specified single value.

Definition at line 47 of file JsonUtils.cpp.

◆ WriteFastString()

AString JsonUtils::WriteFastString ( const Json::Value &  a_Root)

Definition at line 12 of file JsonUtils.cpp.

◆ WriteStyledString()

AString JsonUtils::WriteStyledString ( const Json::Value &  a_Root)

Definition at line 24 of file JsonUtils.cpp.