Support return Unicode escapes

This commit is contained in:
2026-03-30 22:50:07 +11:00
parent 120b0e4f01
commit 0c24096c80
4 changed files with 10 additions and 9 deletions

View File

@@ -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