Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mattn
Copy link
Member

@mattn mattn commented Jan 11, 2017

:echo js_decode("{'foo':'bar'}")

Should work.

@dpelle
Copy link
Member

dpelle commented Jan 11, 2017

I see that patch 8.0.0171 already includes the proposed patch, but it looks like JSON should only accept double quotes. See this link for example: https://discuss.newrelic.com/t/json-parser-doesnt-accept-single-quote-characters/860/5

Where do you see that single quotes should also be accepted?

@brammool
Copy link
Contributor

brammool commented Jan 11, 2017 via email

desvp pushed a commit to desvp/vim that referenced this pull request May 30, 2017
Problem:    JS style JSON does not support single quotes.
Solution:   Allow for single quotes. (Yasuhiro Matsumoto, closes vim#1371)
@mattn mattn deleted the js_decode_single_quote branch August 11, 2017 10:14
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.

3 participants