use "JSONCPP_STRING" instead "Json::String"

This commit is contained in:
hyzboy 2020-01-24 00:17:26 +08:00
parent f93c19afda
commit db0b17029c

View File

@ -40,7 +40,7 @@ namespace hgl
Json::CharReaderBuilder builder;
Json::CharReader *reader=builder.newCharReader();
Json::String errs;
JSONCPP_STRING errs;
const bool result=reader->parse(txt,txt+size,&root,&errs);
@ -75,7 +75,7 @@ namespace hgl
int SaveJson(Json::Value &root,const OSString &filename,OSString &error_info)
{
UTF8String txt;
if(!JsonToString(root,txt,error_info))
return(false);