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

JSON without string quotes #55

Open
prateekdonni opened this issue Apr 7, 2014 · 2 comments
Open

JSON without string quotes #55

prateekdonni opened this issue Apr 7, 2014 · 2 comments

Comments

@prateekdonni
Copy link

@alek-sys I have been trying to use indent JSON function for getting the JSON formatted, however looks like it only understands : {"key": value} format. I would want to extend this to be able to handle: {key: value }. Most of the cases, people might be using the JSON as follows rather than the the quoted string format. Does this seem to be in scope for this ?

I would like to contribute.

@TheChrisPratt
Copy link

Technically, that's not JSON. JSON requires all keys to be quoted. I
guess the plugin could be extended to handle JavaScript Literal Objects,
which is what you're talking about, but that would definitely be more work,
since they can have embedded functions.
(Chris)

On Mon, Apr 7, 2014 at 10:01 AM, prateekdonni [email protected]:

@alek-sys https://github.com/alek-sys I have been trying to use indent
JSON function for getting the JSON formatted, however looks like it only
understands : {"key": value} format. I would want to extend this to be able
to handle: {key: value }. Most of the cases, people might be using the JSON
as follows rather than the the quoted string format. Does this seem to be
in scope for this ?

I would like to contribute.

Reply to this email directly or view it on GitHubhttps://github.com//issues/55
.

@prateekdonni
Copy link
Author

@TheChrisPratt . 👍 yeah, We have JS literal objects which are used quite a bit in places. I am going to fork and hack around and give it a shot.

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

No branches or pull requests

2 participants