Skip to content

Example JSON should be pretty printed / formatterd #393

Answered by jy95
cc-stjm asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @cc-stjm,

I suggest you look for ValueComponent example which gives you the control you seek.

We got this reflexion in #224 as possibilities are endless :

  • JSON.stringify(value, null, 2)
  • JSON.stringify(value, null, 4)
  • JSON.stringify(value, null, "\t")
  • ....

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cc-stjm
Comment options

Answer selected by cc-stjm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #392 on July 08, 2024 13:25.