JSON Formatting

Currenlty the JSON formatting does not work, would it be possible to add a better formatting for this. Here are some examples


Also JSON is identified as a string in JavaScript mode. Can we have a new mode to identify JSON as a JSON object?

CodeMirror does not do formatting (though maybe you just mean indentation).

There is a JSON mode (mime application/json) but that does not highlight JSON markup inside a string. If you have some situation where you are embedding JSON in strings, you could try writing an overlay mode that wraps the JSON mode to get it highlighted.