I changed the .Jason Description now I am getting this error, how do I fix it?

1 Error message
jasonDescriptionFile
2. My jason

@samuel.chaane
give a try on the following part:
\input
and change to \\input

Have a look here:, where the JSON can be validated in advance also helpfully for issue analysis:

1 Like

Why did this happen?
It is because at line 7 you have an invalid Json character. Json strings a very strict with respect to what kind of special characters you can use. In line 7 you have used the backslash " \ ".

When I use your string in Visual Studio Code:

How to fix this error?
Simply replace the one backslash with two backslash and the error will go away :slight_smile:

How to check json strings quicky without IDEs?
Open the json file in mozilla or any modern browser, if the string has formatting issues you will get an error else you will get a nice formatted text.
Before:
image
After:

Extras:

  1. Here is an excellent starter on JSON strings: Learn JSON - Full Crash Course for Beginners - YouTube
  2. JSON escape characters: JSON.simple - Escaping Special Characters

Hope this helps!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.