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

ParseAnonymousValue issue #29

Open
yangruihan opened this issue May 6, 2019 · 2 comments
Open

ParseAnonymousValue issue #29

yangruihan opened this issue May 6, 2019 · 2 comments

Comments

@yangruihan
Copy link

I cannot understand that str.Replace("\\", string.Empty); at 283 line in JSONParser.cs

When I try to parse {"abc": "he\rllo"},I got {"abc": "herllo"}

@topeterk
Copy link

Same issue .. I guess I remove that line and see if I encounter any issues.
@yangruihan have you done this already, was it working for you?

@topeterk
Copy link

Ok this fix seems to work for me: Replace "anonymous string parsing" with function that does "known string parsing".
Before:
{ string str = json.Substring(1, json.Length - 2); return str.Replace("\\", string.Empty); }
after:
{ return ParseValue(typeof(string), json); }

topeterk added a commit to topeterk/HitCounterManager that referenced this issue Aug 10, 2019
topeterk added a commit to topeterk/HitCounterManager that referenced this issue Aug 27, 2022
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