{"record":{"id":"fc32fe7ddb535f69","repo":"OrchardCMS/OrchardCore","slug":"cannot-parse-object","errorCode":null,"errorMessage":"Cannot parse object.","messagePattern":"Cannot parse object\\.","errorType":"exception","errorClass":"JsonException","httpStatus":null,"severity":"error","filePath":"src/OrchardCore/OrchardCore.Abstractions/Json/Serialization/DynamicJsonConverter.cs","lineNumber":86,"sourceCode":"                while (reader.Read())\n                {\n                    switch (reader.TokenType)\n                    {\n                        case JsonTokenType.EndObject:\n                            return dictionary;\n\n                        case JsonTokenType.PropertyName:\n                            var key = reader.GetString();\n                            reader.Read();\n                            if (key is not null)\n                            {\n                                dictionary[key] = Read(ref reader, typeof(object), options);\n                            }\n\n                            break;\n\n                        default:\n                            throw new JsonException(\"Cannot parse object.\");\n                    }\n                }\n\n                throw new JsonException();\n\n            default:\n                throw new JsonException(string.Format(\"Unknown token type {0}\", reader.TokenType));\n        }\n    }\n\n    public override void Write(\n        Utf8JsonWriter writer,\n        object objectToWrite,\n        JsonSerializerOptions options) =>\n        JsonSerializer.Serialize(writer, objectToWrite, objectToWrite.GetType(), options);\n}\n","sourceCodeStart":68,"sourceCodeEnd":103,"githubUrl":"https://github.com/OrchardCMS/OrchardCore/blob/4306c0717fe573f6fca1b4955909ddab6a192807/src/OrchardCore/OrchardCore.Abstractions/Json/Serialization/DynamicJsonConverter.cs#L68-L103","documentation":"The reader entered a JSON object but hit end-of-input before JsonTokenType.EndObject was seen (the while loop over reader.Read() fell through without returning the dictionary). The object literal is truncated or otherwise structurally invalid.","triggerScenarios":"Thrown at src/OrchardCore/OrchardCore.Abstractions/Json/Serialization/DynamicJsonConverter.cs:86 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Validate the JSON document with a parser to locate the unclosed object","Fix whatever truncates the payload (size limits, partial writes, cut-off HTTP bodies)","Avoid constructing JSON by string concatenation; use a serializer"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4306c0717fe573f6fca1b4955909ddab6a192807","analyzedAt":"2026-09-13T17:41:05.024Z","contentChangedAt":"2026-09-13T17:41:05.024Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}