public sealed class InvalidJsonException : IOException, ISerializable
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."],[[["`InvalidJsonException` is thrown when parsing invalid JSON, such as a non-string property key or redundant comma, using `JsonParser`."],["This exception is specifically for errors in the JSON format itself, differentiating it from `InvalidProtocolBufferException`, which addresses issues with JSON being parsable as a protocol buffer message."],["`InvalidJsonException` inherits from `IOException` and implements `ISerializable`, as well as several `Exception` class methods and properties."],["The `InvalidJsonException` class can be found in the `Google.Protobuf` namespace within the `Google.Protobuf.dll` assembly."]]],[]]