Fix UBJSON with boolean value. (#10054)

This commit is contained in:
Jiaming Yuan
2024-02-20 22:13:51 +08:00
committed by GitHub
parent 6e3c899ba7
commit d37b83e8d9
2 changed files with 16 additions and 1 deletions

View File

@@ -791,7 +791,7 @@ Json UBJReader::Parse() {
return Json{JsonBoolean{true}};
}
case 'F': {
return Json{JsonBoolean{true}};
return Json{JsonBoolean{false}};
}
case 'd': {
auto v = this->ReadPrimitive<float>();