How to set json formatter of codemorrir.next

How to set json formatter of codemorrir.next

Please put more work into asking questions if you want people to give you a useful answer. I do not know what you are trying to ask, and I don’t have the time to puzzle over cryptic questions.

I have a similar problem about formatting json file.

Current doc

What i want

image

That is not something CodeMirror will do for you.