Closed G2G2G2G closed 3 years ago
Yes, this is intended to simplify string management in C++ code. Single quotes are valid in JSON, aren't they? At least Insomnia shows correct decoded JSON data.
Yes I saw that in your code, unfortunately no JSON spec is double quotes only, some references here: https://stackoverflow.com/questions/14355655/jquery-parsejson-single-quote-vs-double-quote
I can edit it, if you don't have time, but I would just switch all of the '
to \"
instead.
It is a lot uglier, but that is the JSON spec. browsers do not parse it correctly and just throw errors when your current json. You can navigate to the gateway api in any browser and see the errors if you want, only way to view the data is via the 'raw' setting where it doesn't parse for you.
No idea what insomnia is
Thank you. I'll change this in next release.
It should be solved in a5b2a76. Thanks again
All of the web API sends single quotes instead of double quotes
https://github.com/gmag11/EnigmaIOT/blob/master/docs/api.md