I have the same Problem with .js files. Some are working and some are not. Filesize makes no difference here. :-/
This fix worked for me, thank you!
This is still an issue and as is pointed out in issue #727 on the python client repo (sorry it won’t let me add a link) if the file is less than 1kb the API will not accept valid JSON but it will accept invalid JSON.
For larger files, valid JSON uploads correctly.
For me, the file size was the issue. The error made no sense, and I ended up spending quite some time to figure this out.
I saw the same error with a very simple json:
{“email”:“sdf”,“name”:“essd”,“address”:“sdf”}
It worked for me when I replaced " with ’
{‘email’:‘sdf’,‘name’:‘essd’,‘address’:‘sdf’}
double quotes in Markdown view will change the double quote into different characters.
If copy the example json from above “markdown”, the double quote will be replaced with two different character(maybe it’s because to prevent hack of format?).
So if you copy json data from markdown, you may need copy to other text editor, and replace the starting and ending double quote(they are not double quote) to original double quote.
Use online jsonViewer like service to validate is a good choice.