In brief
After reading, the expected structure should be checked.
Useful to know
JSON.parse() reads JSON text and returns the described value. For example, JSON.parse('{"count":3}') gives an object, and JSON.parse('3') gives a number. Success does not guarantee that the result is an object with certain fields . [1]
Separate the processing of syntax error from the validation of the structure. When entering a list, check the container, each record, and the field types. Do not run JSON as JavaScript code. The parser solves the syntax; the application must decide which data is eligible for the specific operation.
Sources
For further detail and to check the information: