am trying to load an image from JSON file but get no output.
What could i be doing wrong.Or what should i do to make it load?
iGabantu Studios
Comments
Eifert@Aximmetry
-
Hi,
In JSON you can not write the \ character in values or names. Just like you can not write the " character as JSON uses it for its own structure.
So instead of D:\Projects\MyImage you have to write D:\\Projects\\MyImage in your JSON file.
If you are using Aximmetry to generate this JSON file with the path inside it. You can use the Text Escape module before the JSON Exporter to automatically put the extra \ into the paths.
An error occurred while uploading, please try again.
Cookie consent
Our website uses cookies to give you the best online experience, also we use other technologies to improve
and analyze our website traffic, and to understand where our visitors are coming from.
Hi,
In JSON you can not write the \ character in values or names. Just like you can not write the " character as JSON uses it for its own structure.
So instead of D:\Projects\MyImage you have to write D:\\Projects\\MyImage in your JSON file.
If you are using Aximmetry to generate this JSON file with the path inside it. You can use the Text Escape module before the JSON Exporter to automatically put the extra \ into the paths.
Warmest regards,