Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a stringify method to format a JSON and returns markers #74

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yannickglt
Copy link

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.

@yannickglt yannickglt force-pushed the feat/add-stringify-method branch from 765835e to 4e5188b Compare February 22, 2016 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant