Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Remove replacing apostrophes with double apostrophes before trying to parse string to JSON #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kaapa-s
Copy link

@kaapa-s kaapa-s commented Oct 21, 2014

For example let's have JSON

{"test" : "it's perfectly valid JSON"}

And then you plug this JSON to your element's published property attribute, the parsing will fail due to replace which is being done right now.

I think it's reasonable to remove this replace and allow only valid (http://json.org/) JSON to be parsed.

By the way if you realize what are the implications of this replacing you'll find the comment saying: " // include convenience replace for single-quotes. If the author omits" very funny.

@ebidel ebidel added cla: yes and removed cla: no labels Oct 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants