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"]],[["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\u003eVersion 3.15.8 of the \u003ccode\u003eGoogle.Protobuf\u003c/code\u003e library includes the \u003ccode\u003eInvalidJsonException\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInvalidJsonException\u003c/code\u003e is thrown when there is an attempt to parse invalid JSON.\u003c/p\u003e\n"],["\u003cp\u003eThis exception is specifically for errors in the JSON itself, such as non-string property keys or extra commas.\u003c/p\u003e\n"],["\u003cp\u003eParsing JSON with \u003ccode\u003eJsonParser\u003c/code\u003e may also throw \u003ccode\u003eInvalidProtocolBufferException\u003c/code\u003e for issues where the JSON is structurally valid but doesn't fit the protocol buffer message format.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInvalidJsonException\u003c/code\u003e class inherits from \u003ccode\u003eIOException\u003c/code\u003e and is found within the \u003ccode\u003eGoogle.Protobuf\u003c/code\u003e namespace in the \u003ccode\u003eGoogle.Protobuf.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]