One other gotcha that can result in "SyntaxError: Unexpected token" exception when calling JSON.parse() is using any of the following in the string values: New-line characters. 186 Currently, I have some issues. I'm using C# with Json.NET.

Understanding the Context

The issue is that I always get: {"Unexpected character encountered while parsing value: e. Path '', line 0, position 0."} So the way I'm using Json.NET is the following. I have a Class which should be saved. The class looks like this: