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 non-string property keys or redundant commas."],["This exception is distinct from `InvalidProtocolBufferException`, as it specifically addresses errors in pure JSON formatting, while the latter relates to issues with JSON data not conforming to protocol buffer message structures."],["`InvalidJsonException` inherits from `IOException`, `SystemException`, `Exception`, and `object`, and implements `ISerializable`."],["The class is part of the `Google.Protobuf` namespace and is found within the `Google.Protobuf.dll` assembly."],["The most recent version of this class is version 3.27.1, however versions 3.23.0 and 3.15.8 also exist."]]],[]]