3#include "mc/_HeaderOutputPredefine.h"
7namespace Json {
class Value; }
10namespace JsonHelpers {
14MCNAPI
void addIntField(::Json::Value& rootValue, ::std::string
const& fieldName,
int const& value);
16MCNAPI
void addStringField(::Json::Value& rootValue, ::std::string
const& fieldName, ::std::string
const& value);
19MCNAPI ::std::string getAsString(::Json::Value
const& value, ::std::string_view defaultString);
22MCNAPI ::std::vector<::std::string> getAsStringArray(::Json::Value
const& value);
24MCNAPI ::Json::Value
const& getField(::Json::Value
const& rootValue, ::std::string
const& fieldName);
26MCNAPI ::Json::Value
const& getFieldAsArray(::Json::Value
const& rootValue, ::std::string
const& fieldName);
28MCNAPI
bool getFieldAsBool(::Json::Value
const& rootValue, ::std::string
const& fieldName,
bool defaultBool);
30MCNAPI
float getFieldAsFloat(::Json::Value
const& rootValue, ::std::string
const& fieldName,
float defaultFloat);
32MCNAPI
int getFieldAsInt(::Json::Value
const& rootValue, ::std::string
const& fieldName,
int defaultInt);
34MCNAPI int64 getFieldAsInt64(::Json::Value
const& rootValue, ::std::string
const& fieldName, int64 defaultInt64);
36MCNAPI ::std::unordered_map<::std::string, ::std::string>
37getFieldAsLocDictionary(::Json::Value
const& rootValue, ::std::string
const& fieldName);
39MCNAPI ::std::unordered_map<::std::string, ::std::string>
40getFieldAsMapOfKeyValuePairs(::Json::Value
const& rootValue, ::std::string
const& fieldName);
42MCNAPI ::Json::Value
const& getFieldAsObject(::Json::Value
const& rootValue, ::std::string
const& fieldName);
44MCNAPI ::std::vector<::std::reference_wrapper<::Json::Value const>>
45getFieldAsObjectArray(::Json::Value
const& rootValue, ::std::string
const& fieldName);
48getFieldAsString(::Json::Value
const& rootValue, ::std::string
const& fieldName, ::std::string
const& defaultString);
50MCNAPI ::std::vector<::std::string>
51getFieldAsStringArray(::Json::Value
const& rootValue, ::std::string
const& fieldName);
53MCNAPI uint64 getFieldAsUint64(::Json::Value
const& rootValue, ::std::string
const& fieldName, uint64 defaultUint64);
55MCNAPI
bool hasField(::Json::Value
const& rootValue, ::std::string
const& fieldName);
57MCNAPI
bool parseJson(::std::string
const& str, ::Json::Value& root);
59MCNAPI ::std::string serialize(::Json::Value
const& root);
65MCNAPI ::Json::Value
const& EMPTY_JSON();