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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["Version 3.15.8 of the `Google.Protobuf` library includes the `InvalidJsonException` class."],["`InvalidJsonException` is thrown when there is an attempt to parse invalid JSON."],["This exception is specifically for errors in the JSON itself, such as non-string property keys or extra commas."],["Parsing JSON with `JsonParser` may also throw `InvalidProtocolBufferException` for issues where the JSON is structurally valid but doesn't fit the protocol buffer message format."],["The `InvalidJsonException` class inherits from `IOException` and is found within the `Google.Protobuf` namespace in the `Google.Protobuf.dll` assembly."]]],[]]