iw4x-client/src/Utils/Json.cpp

26 lines
444 B
C++
Raw Normal View History

2022-06-12 17:07:53 -04:00
#include <STDInclude.hpp>
namespace Utils::Json
{
std::string TypeToString(json11::Json::Type type)
{
switch (type)
{
case json11::Json::NUL:
return "NUL";
case json11::Json::NUMBER:
return "NUMBER";
case json11::Json::BOOL:
return "BOOL";
case json11::Json::STRING:
return "STRING";
case json11::Json::ARRAY:
return "ARRAY";
case json11::Json::OBJECT:
return "OBJECT";
default:
return "NUL";
}
}
}