https://updatedideas.com/how-to-handle-an-unexpected-error-in-json-parse-error/
How to Handle an Unexpected Error in JSON Parse Error