You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to log to JSON format a message that contains e.g. the debug representation of a struct, the double quotes are not escaped a leads to invalid JSON output.
I suspect other things need to be escaped in the message to generate valid JSON, and I would suggest to defer this to a proper JSON library like serde_json (the industry standard) or tinyjson (never tested myself but fewer deps).
The text was updated successfully, but these errors were encountered:
When trying to log to JSON format a message that contains e.g. the debug representation of a struct, the double quotes are not escaped a leads to invalid JSON output.
I suspect other things need to be escaped in the message to generate valid JSON, and I would suggest to defer this to a proper JSON library like serde_json (the industry standard) or tinyjson (never tested myself but fewer deps).
The text was updated successfully, but these errors were encountered: