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

@@ -1104,10 +1104,10 @@ namespace ANSCENTER {
{"kps", KeypointsToString(det.kps)}
});
}
return root.dump();
// ensure_ascii=true escapes non-ASCII chars as \uXXXX for LabVIEW compatibility
return root.dump(-1, ' ', true);
}
catch (const std::exception& e) {
// Add your error logging here if needed
return R"({"results":[],"error":"Serialization failed"})";
}
}