Skip to content

Non-verifying dump() alternative for debugging/logging needed #1335

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions