Support return Unicode escapes
This commit is contained in:
@@ -2379,7 +2379,7 @@ namespace ANSCENTER {
|
||||
END_TIMER(json_build, "JSON Build Time");
|
||||
|
||||
START_TIMER(json_serialize);
|
||||
std::string result = root.dump();
|
||||
std::string result = root.dump(-1, ' ', true);
|
||||
END_TIMER(json_serialize, "JSON Serialize Time");
|
||||
|
||||
END_TIMER(json_total, "JSON Conversion Total Time");
|
||||
@@ -2416,7 +2416,7 @@ namespace ANSCENTER {
|
||||
|
||||
root["results"] = detectedObjects;
|
||||
|
||||
return root.dump(); // or root.dump(4) for pretty-printed JSON with 4-space indent
|
||||
return root.dump(-1, ' ', true);
|
||||
}
|
||||
|
||||
// Validation helper methods
|
||||
|
||||
Reference in New Issue
Block a user