Invalid Reverse Solidus '\' declaration when going from JSON to C#...
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?
you have to remove all the forward slash from the code then only it will work "/" this symbol
But JSON with information like Google's polyline will have those characters. How can we neglect that?
Consider running this regular expression as a data-cleanup step \\u[0-9a-z]{4} before handing it over to quicktype.
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
+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.
+1
+1
how can we use +1
As a workaround, I'm using this website https://jsonformatter.org/ to clean up these Invalid Reverse Solidus
+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.
+1. 4 months later, this is a really inconvenient issues.
I have the same issue