Class InvalidJsonException (3.15.8)

public sealed class InvalidJsonException : IOException

Thrown when an attempt is made to parse invalid JSON, e.g. using a non-string property key, or including a redundant comma. Parsing a protocol buffer message represented in JSON using JsonParser can throw both this exception and InvalidProtocolBufferException depending on the situation. This exception is only thrown for "pure JSON" errors, whereas InvalidProtocolBufferException is thrown when the JSON may be valid in and of itself, but cannot be parsed as a protocol buffer message.

Inheritance

Object > InvalidJsonException

Namespace

Google.Protobuf

Assembly

Google.Protobuf.dll