We have an interesting situation
ORDS 18.3, APEX 18.2, Tomcat 9.0.10, Apache , AWS Cloudfront
First of all /ords/* and /i/* is excluded from Cloudfront.
When our APEX application performs a validation and the validation does not pass, we get the following error
"Error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
If we bypass Cloudfront altogether it works fine.
We can't find anything wrong in the jSON so something else is not right here.
Please advise what we can do to get to the bottom of this and fix.
It could be a byte order mark. Maybe some of the files is encoded with "UTF-8 BOM". That way you get a hidden control character which can screw your utf8 file parser.