JsonFormatException

Inherits:
Exception
Implements:
ISerializable,_Exception
Namespace:
BonaJson.Internal

Description

Thrown by the Json parser when a parser tries to parse a string that is either not of Json-format at all, or is not, for whatever reason, valid. This might include forgotten brackets, an invalid start of the file or a unexpected end of the while before a whole Json tree has parsed.

Public Properties

Name Type Description
Position Int32 Position (index) of the character that caused the error.
Line Int32 Current line where something invalid was found.
Context String A short snippet surrounding the invalid Json to make debugging easier.