How to pretty print JSON using .Display()
#3718
-
The JSON is highlighted by not indented, I would like to be able to configure JsonSerilizer. |
Beta Was this translation helpful? Give feedback.
Answered by
jonsequitur
Oct 18, 2024
Replies: 3 comments 3 replies
-
Are you looking for |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, but it is read-only |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can you explain more about what you're trying to do? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which JSON?
Code highlighting is a feature of VS Code and it will show up as long as the MIME type has a corresponding notebook renderer.
Indentation is a feature of various JSON serializers. Here's a simple method to indent some JSON using System.Text.Json: