I've been looking around for quite some time now, because I'm having an edge case situation where I need to be able to show/edit a JSON file, which is already done, but my issue being that I need this JSON file to stay identical to the source material, here's an example (Shown in JSON5 format, as this was one of my many attempts, but you'll get the idea anyway):
{
bigint: 124124124124124124124,
boolean: true,
string: 'Hello World',
number: 123.456,
color: '#b0a4e3',
null: null,
time: 1575599819000,
array: [ 1, 2 ],
object: {
a: 'b',
c: 'd'
}
}
As you can see, we have an "array" object, that's all in one-line, where another object "object" has all his params in different lines.
I'd like to be able to stick to this format, in Codemirror (or any other lib that can allow me to live edit json files, and it's available with Vue.js) without having my "array" object being displayed like "object", in multiple lines.
I've tried different parsing methods, even tried to go with JSON5, but didn't help much (it was worse, there entire file was only showed in one line only) - So I'd like to know if this is even possible, because I'm not sure now that I've tried so many things. Maybe I'm missing something