It would allow to both format a JSON as string using a given indentation (like JSON.stringify) and return a list of markers for matching results. A marker is an object { lineStart: number, columnStart: number, lineEnd: number, columnEnd: number } referring to the output formatted JSON.
Markers are helpful for highlighting in a source code editor like CodeMirror for example.
It would allow to both format a JSON as string using a given indentation (like JSON.stringify) and return a list of markers for matching results. A marker is an object
{ lineStart: number, columnStart: number, lineEnd: number, columnEnd: number }
referring to the output formatted JSON.Markers are helpful for highlighting in a source code editor like CodeMirror for example.
You can see http://yannickglt.github.io/esselect/ to get a preview of the use such a stringify method.