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

"bad escaped character" error in json #21

Open
makc opened this issue Jan 10, 2017 · 2 comments
Open

"bad escaped character" error in json #21

makc opened this issue Jan 10, 2017 · 2 comments

Comments

@makc
Copy link

makc commented Jan 10, 2017

e g this fbx file converts to this json file which fails to parse in firefox with following error:

SyntaxError: JSON.parse: bad escaped character at line 9141 column 53 of the JSON data

@makc
Copy link
Author

makc commented Jan 11, 2017

the offending symbol combination in json is:

"name": "RPC Tree - Deciduous Scarlet Oak - 42\' [946164]"

the original data in fbx file:
screen shot 2017-01-11 at 18 37 09

@makc
Copy link
Author

makc commented Jan 11, 2017

basically boils down to this:

escape backslashes and single quotes, both would render the JSON invalid if left as is

which is incorrect, single quote is just fine if left as is (proof).

@makc makc changed the title random errors in json "bad escaped character" error in json Jan 11, 2017
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

1 participant