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

Improve string decoder #25

Merged
merged 4 commits into from
Jan 18, 2014

Conversation

FWeinb
Copy link
Collaborator

@FWeinb FWeinb commented Jan 18, 2014

Handle the escaping of \" and finds the right end quote (the first
quote that is not escapes)

With this changes we have
json_decode('"test\\\"test"') equals the result of
JSON.parse('"test\\\"test"') and is "test"test"

KittyGiraudel and others added 4 commits January 18, 2014 16:27
# By Hugo Giraudel
* 'master' of https://github.com/FWeinb/SassyJSON:
  Moved all type-specific tests to type-specific functions
Handle the escaping of \” and and finds the right end quote (the first
quote that is not escapes)

With this changes we have
`json_decode(‘“test\\\”test”’)` equals the result of
`JSON.parse(“test\\\”test”)` and is `“test”test”
KittyGiraudel added a commit that referenced this pull request Jan 18, 2014
@KittyGiraudel KittyGiraudel merged commit 964443e into KittyGiraudel:master Jan 18, 2014
@FWeinb FWeinb deleted the improve-string-decoder branch January 18, 2014 18:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants