Support return Unicode escapes
This commit is contained in:
@@ -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"})";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user