Non-verifying dump() alternative for debugging/logging needed #1335
Labels
kind: question
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
I have an embedded application using json.hpp v3.2.0 that mysteriously fails when stresstesting on a foreign lab-setup outside my PC. From the log I can see the reported error "Invalid UTF-8" error at index 1 : 0xF5" but nothing more.
I can not debug the software directly, so I would like to log the illegal json as a string or hex dump, so I can better diagnose the problem.
Would it be possible to provide a non-verifying dump() method, that could make a best effort to print out as much as possible of the json - even in the presence of such errors? With such a method I could inspect the output and use a process of elimination to better locate the part of the json that has a problem.
The text was updated successfully, but these errors were encountered: