-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpectedly-flat JSON output for nested, opaque objects #6
Comments
@gpind Thanks for the report! Are you sure you ran |
One potential solution is to exclude the arbitrary objects by rebinding |
Yes, I ran the second command in the same REPL as the first. It's totally expected that serializing an arbitrary object would result in a string like Ideally we'd be able to remove/stringify these opaque objects generically, perhaps using |
Sounds reasonable. Let me think how best to address this in Cambium - also, PRs welcome. |
Using these deps:
Logging an opaque object (which sometimes happens unintentionally) under a top-level key works (output formatted for legibility):
Whereas if that object is nested under another key, it results in the surrounding map being flattened in a strange way:
My
logback.xml
:The text was updated successfully, but these errors were encountered: