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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eInvalidJsonException\u003c/code\u003e is thrown when parsing invalid JSON, such as a non-string property key or redundant comma, using \u003ccode\u003eJsonParser\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis exception is specifically for errors in the JSON format itself, differentiating it from \u003ccode\u003eInvalidProtocolBufferException\u003c/code\u003e, which addresses issues with JSON being parsable as a protocol buffer message.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInvalidJsonException\u003c/code\u003e inherits from \u003ccode\u003eIOException\u003c/code\u003e and implements \u003ccode\u003eISerializable\u003c/code\u003e, as well as several \u003ccode\u003eException\u003c/code\u003e class methods and properties.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInvalidJsonException\u003c/code\u003e class can be found in the \u003ccode\u003eGoogle.Protobuf\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Protobuf.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]