use "JSONCPP_STRING" instead "Json::String"
This commit is contained in:
parent
f93c19afda
commit
db0b17029c
@ -40,7 +40,7 @@ namespace hgl
|
|||||||
Json::CharReaderBuilder builder;
|
Json::CharReaderBuilder builder;
|
||||||
Json::CharReader *reader=builder.newCharReader();
|
Json::CharReader *reader=builder.newCharReader();
|
||||||
|
|
||||||
Json::String errs;
|
JSONCPP_STRING errs;
|
||||||
|
|
||||||
const bool result=reader->parse(txt,txt+size,&root,&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)
|
int SaveJson(Json::Value &root,const OSString &filename,OSString &error_info)
|
||||||
{
|
{
|
||||||
UTF8String txt;
|
UTF8String txt;
|
||||||
|
|
||||||
if(!JsonToString(root,txt,error_info))
|
if(!JsonToString(root,txt,error_info))
|
||||||
return(false);
|
return(false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user