Fixed boolean support in JSON library.
This commit is contained in:
parent
adc34a0ac9
commit
d7fb7dd779
1 changed files with 8 additions and 0 deletions
|
@ -756,6 +756,14 @@ std::string JSON::Value::toString() const {
|
|||
return st.str();
|
||||
break;
|
||||
}
|
||||
case BOOL: {
|
||||
if (intVal != 0){
|
||||
return "true";
|
||||
}else{
|
||||
return "false";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case STRING: {
|
||||
return string_escape(strVal);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue