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

Invalid Reverse Solidus '\' declaration when going from JSON to C#... #1243

Open
natiki opened this issue Jun 4, 2019 · 12 comments
Open

Invalid Reverse Solidus '\' declaration when going from JSON to C#... #1243

natiki opened this issue Jun 4, 2019 · 12 comments

Comments

@natiki
Copy link

natiki commented Jun 4, 2019

Hi,

I wanted to convert the JSON from https://datahub.io/core/top-level-domain-names to some C# code.

However I got the above error when pasting the JSON into https://app.quicktype.io/. It appears that Unicode data is not parsed?

@badguy1997
Copy link

you have to remove all the forward slash from the code then only it will work "/" this symbol

@satyam90
Copy link

But JSON with information like Google's polyline will have those characters. How can we neglect that?

@Goblin80
Copy link

Consider running this regular expression as a data-cleanup step \\u[0-9a-z]{4} before handing it over to quicktype.

@rianjs
Copy link

rianjs commented Dec 9, 2020

Lots of JSON APIs have this characteristic. Bitbucket's API is another one. This should probably be adjusted on the Quicktype side.

Edit: Unicode zero-width space ( \u200c ) causes this error message, too.

Here's a big JSON blob that'll trigger this error multiple times:
https://bitbucket.org/!api/2.0/repositories/medicalinformatics/mainzelliste/pullrequests/143/activity

@darkguy2008
Copy link

+1, getting this in 2021 as well. I think this could be an easy fix from the Quicktype side instead of us cleaning up the JSON beforehand.

@kzorin52
Copy link

+1

1 similar comment
@tbkj98
Copy link

tbkj98 commented Dec 2, 2021

+1

@HaroonAfzal22
Copy link

how can we use +1

@chneau
Copy link

chneau commented Aug 22, 2022

As a workaround, I'm using this website https://jsonformatter.org/ to clean up these Invalid Reverse Solidus

@xTachyon
Copy link

+1. Still not working with escaped unicode chars. Also what's with that error message, I did not even heard the word solidus before today.

@NotaRobot13
Copy link

+1. 4 months later, this is a really inconvenient issues.

@BenJackGill
Copy link

I have the same issue

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