ErrLookup › JamesNK/Newtonsoft.Json
JamesNK/Newtonsoft.Json
Json.NET is a popular high-performance JSON framework for .NET · C# · 932 source files
Analyzed at 4f73e74372 on 2026-08-07. 216 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Unexpected token when writing BSON: {0} | exception | error | bson, serialization, argument-out-of-range, writer |
| An ObjectId must be 12 bytes | validation | error | bson, objectid, argument, validation |
| Unexpected BsonType value: {0} | exception | error | bson, deserialization, argument-out-of-range, corrupt-data |
| Unable to read beyond the end of the stream. | exception | error | bson, deserialization, end-of-stream, corrupt-data |
| Unexpected value type when writing binary: {0} | exception | error | serialization, converter, binary, type-mismatch |
| Expected Bytes but got {0}. | exception | error | bson, deserialization, converter, objectid, type-mismatch |
| CustomCreationConverter should only be used while deserializ | exception | error | serialization, converter, not-supported, custom-creation |
| No object created. | exception | error | deserialization, converter, custom-creation, null-reference |
| Expected JSON property '{0}'. | exception | error | deserialization, converter, entity-framework, schema-mismatch |
| Unexpected value when converting date. Expected DateTime or | exception | error | serialization, converter, datetime, type-mismatch |
| Expected date object value. | exception | error | serialization, converter, datetime, type-mismatch, javascript |
| Expected date object value. | exception | error | serialization, converter, datetime, type-mismatch, unix-time |
| Cannot convert date value that is before Unix epoch of 00:00 | exception | error | serialization, converter, datetime, unix-time, validation |
| Expected Version object value | exception | error | serialization, converter, version, type-mismatch |
| Value must be an XML object. | validation | error | serialization, converter, xml, type-mismatch |
| Unexpected XmlNodeType when getting node name: | exception | error | serialization, converter, xml, node-type |
| Namespace attribute must have a value. | exception | error | serialization, converter, xml, namespace, validation |
| Unexpected XmlNodeType when serializing nodes: | exception | error | serialization, converter, xml, node-type |
| Delimiter must be a single or double quote. | validation | error | serialization, jsonconvert, argument, validation |
| Unsupported type: {0}. Use the JsonSerializer class to get t | validation | error | serialization, type-mismatch, primitive |
| Converter cannot write specified value to JSON. {0} is requi | exception | error | converter, type-mismatch, serialization |
| Converter cannot read JSON with the specified existing value | exception | error | converter, deserialization, type-mismatch |
| Value must be positive. | validation | error | configuration, validation, max-depth |
| Reference resolver cannot be null. | validation | error | configuration, null-argument, reference-resolution |
| Cannot get SerializationBinder because an ISerializationBind | exception | error | obsolete-api, serialization-binder, configuration |
| Serialization binder cannot be null. | validation | error | obsolete-api, null-argument, serialization-binder |
| Value must be positive. | exception | error | configuration, validation, max-depth |
| Cannot get SerializationBinder because an ISerializationBind | exception | error | obsolete-api, serialization-binder, configuration |
| Value must be positive. | exception | error | configuration, validation, max-depth |
| Indentation value must be greater than 0. | exception | error | formatting, configuration, validation |
| Invalid JavaScript string quote character. Valid quote chara | exception | error | formatting, validation, json-spec |
| CurrentPropertyName has not been set on scope. | exception | error | schema-validation, json-reader, internal-state |
| Unexpected token type: {0} | exception | error | schema-validation, json-reader, unexpected-token |
| Cannot change schema while validating JSON. | exception | error | schema-validation, configuration, invalid-operation |
| A name is required when setting property name state. | exception | error | json-writer, async, type-mismatch |
| A name is required when setting property name state. | exception | error | json-writer, type-mismatch, json-spec |
| Source value must be a JToken. | exception | error | linq-to-json, type-mismatch, extension-method |
| Cannot cast {0} to {1}. | exception | error | linq-to-json, type-mismatch, casting |
| Object serialized to {0}. JArray instance expected. | exception | error | jarray, fromobject, serialization, argument |
| Accessed JArray values with invalid key value: {0}. Int32 ar | exception | error | jarray, indexer, argument |
| Set JArray values with invalid key value: {0}. Int32 array i | exception | error | jarray, indexer, argument |
| Constructor name cannot be empty. | exception | error | jconstructor, argument, validation |
| Accessed JConstructor values with invalid key value: {0}. Ar | exception | error | jconstructor, indexer, argument |
| Set JConstructor values with invalid key value: {0}. Argumen | exception | error | jconstructor, indexer, argument |
| The JsonReader should not be on a token of type {0}. | exception | error | jsonreader, async, invalid-operation, parsing |
| Cannot change {0} during a collection change event. | exception | error | jcontainer, reentrancy, events, invalid-operation |
| Index must be within the bounds of the List. | exception | error | jcontainer, insert, bounds, argument |
| Index is less than 0. | exception | error | jcontainer, remove, bounds, argument |
| Index is equal to or greater than Count. | exception | error | jcontainer, remove, bounds, argument |
| array | exception | error | jcontainer, copyto, null, argument |
| arrayIndex is less than 0. | exception | error | jcontainer, copyto, bounds, argument |
| arrayIndex is equal to or greater than the length of array. | exception | error | jcontainer, copyto, bounds, argument |
| The number of elements in the source JObject is greater than | exception | error | jcontainer, copyto, bounds, argument |
| Can not add {0} to {1}. | exception | error | jcontainer, jproperty, validate, argument |
| Could not determine JSON object type for type {0}. | exception | error | jcontainer, merge, validate, argument |
| The JsonReader should not be on a token of type {0}. | exception | error | jsonreader, sync, invalid-operation, parsing |
| Newtonsoft.Json support for System.ComponentModel is not com | exception | error | newtonsoft-json, linq-to-json, componentmodel, trimming, aot, data-binding |
| Argument is not a JToken. | exception | error | newtonsoft-json, linq-to-json, ilist, type-mismatch |
| Could not determine new value to add to '{0}'. | exception | error | newtonsoft-json, linq-to-json, bindinglist, data-binding, winforms |
| New item to be added to collection must be compatible with { | exception | error | newtonsoft-json, linq-to-json, bindinglist, data-binding, type-mismatch |
| Unexpected merge array handling when merging JSON. | exception | error | newtonsoft-json, linq-to-json, merge, enum, argument-validation |
| Can not add {0} to {1}. | exception | error | newtonsoft-json, linq-to-json, jobject, type-mismatch |
| Can not add property {0} to {1}. Property with the same name | exception | error | newtonsoft-json, linq-to-json, jobject, duplicate-key |
| Accessed JObject values with invalid key value: {0}. Object | exception | error | newtonsoft-json, linq-to-json, jobject, indexer, type-mismatch |
| Set JObject values with invalid key value: {0}. Object prope | exception | error | newtonsoft-json, linq-to-json, jobject, indexer, type-mismatch |
| Object serialized to {0}. JObject instance expected. | exception | error | newtonsoft-json, linq-to-json, jobject, fromobject, type-mismatch |
| array | exception | error | newtonsoft-json, linq-to-json, jobject, copyto, null-argument |
| arrayIndex is less than 0. | exception | error | newtonsoft-json, linq-to-json, jobject, copyto, argument-validation |
| arrayIndex is equal to or greater than the length of array. | exception | error | newtonsoft-json, linq-to-json, jobject, copyto, argument-validation |
| The number of elements in the source JObject is greater than | exception | error | newtonsoft-json, linq-to-json, jobject, copyto, argument-validation |
| Newtonsoft.Json support for dynamic is not compatible with t | exception | error | newtonsoft-json, linq-to-json, dynamic, dlr, trimming, aot |
| Cannot add or remove items from {0}. | exception | error | json, linq-to-json, jproperty, collection, mutation |
| {0} cannot have multiple values. | exception | error | json, linq-to-json, jproperty, collection, mutation |
| The specified item does not exist in this KeyedCollection. | exception | error | json, linq-to-json, jobject, collection, internal |
| key | exception | error | json, linq-to-json, jobject, null, argument |
| The parent is missing. | exception | error | json, linq-to-json, jtoken, parent, mutation |
| Cannot access child value on {0}. | exception | error | json, linq-to-json, jtoken, jvalue, index |
| Can not convert {0} to Boolean. | exception | error | linq-to-json, jtoken, cast, boolean, argumentexception |
| Can not convert {0} to DateTimeOffset. | exception | error | linq-to-json, jtoken, cast, datetimeoffset, argumentexception |
| Can not convert {0} to Int64. | exception | error | linq-to-json, jtoken, cast, int64, argumentexception |
| Can not convert {0} to DateTime. | exception | error | linq-to-json, jtoken, cast, nullable-datetime, argumentexception |
| Can not convert {0} to Decimal. | exception | error | linq-to-json, jtoken, cast, nullable-decimal, argumentexception |
| Can not convert {0} to Double. | exception | error | linq-to-json, jtoken, cast, nullable-double, argumentexception |
| Can not convert {0} to Char. | exception | error | linq-to-json, jtoken, cast, nullable-char, argumentexception |
| Can not convert {0} to Int32. | exception | error | linq-to-json, jtoken, cast, int32, argumentexception |
| Can not convert {0} to Int16. | exception | error | linq-to-json, jtoken, cast, int16, argumentexception |
| Can not convert {0} to UInt16. | exception | error | linq-to-json, jtoken, cast, uint16, argumentexception |
| Can not convert {0} to Byte. | exception | error | linq-to-json, jtoken, cast, byte, argumentexception |
| Can not convert {0} to SByte. | exception | error | linq-to-json, jtoken, cast, sbyte, argumentexception |
| Can not convert {0} to Single. | exception | error | json, linq-to-json, type-cast, jtoken, numeric, newtonsoft-json |
| Can not convert {0} to UInt32. | exception | error | json, linq-to-json, type-cast, jtoken, numeric, unsigned, newtonsoft-json |
| Can not convert {0} to UInt64. | exception | error | json, linq-to-json, type-cast, jtoken, numeric, unsigned, newtonsoft-json |
| Can not convert {0} to String. | exception | error | json, linq-to-json, type-cast, jtoken, string, newtonsoft-json |
| Can not convert {0} to byte array. | exception | error | json, linq-to-json, type-cast, jtoken, byte-array, base64, newtonsoft-json |
| Can not convert {0} to Guid. | exception | error | json, linq-to-json, type-cast, jtoken, guid, newtonsoft-json |
| Can not convert {0} to TimeSpan. | exception | error | json, linq-to-json, type-cast, jtoken, timespan, newtonsoft-json |
| Can not convert {0} to Uri. | exception | error | json, linq-to-json, type-cast, jtoken, uri, newtonsoft-json |
| Can not convert {0} to BigInteger. | exception | error | json, linq-to-json, type-cast, jtoken, numeric, biginteger, newtonsoft-json |
| Could not convert '{0}' to {1}. | exception | error | enum, deserialization, linq-to-json, string-enum, argumentexception |
| Path returned multiple tokens. | exception | error | jsonpath, selecttoken, linq-to-json, cardinality, jsonexception |
| Newtonsoft.Json support for dynamic is not compatible with t | exception | error | dynamic, trimming, native-aot, notsupported, feature-switch |
| annotation | validation | error | annotations, argumentnull, null-check, linq-to-json |
| type | validation | error | annotations, argumentnull, null-check, reflection |
| Object must be of type byte[]. | exception | error | jvalue, compareto, bytes, invalid-cast, argumentexception |
| Object must be of type Guid. | exception | error | jvalue, compareto, guid, invalid-cast, argumentexception |
| Object must be of type Uri. | exception | error | jvalue, compareto, uri, invalid-cast, argumentexception |
| Object must be of type TimeSpan. | exception | error | jvalue, compareto, timespan, invalid-cast, argumentexception |
| Could not determine JSON object type for type {0}. | exception | error | jvalue, unsupported-type, argumentexception, linq-to-json, converter |
| Newtonsoft.Json support for dynamic is not compatible with t | exception | error | dynamic, trimming, native-aot, notsupported, jvalue, feature-switch |
| Newtonsoft.Json serialization is not compatible with trimmin | exception | error | iconvertible, trimming, native-aot, serialization, notsupported, jvalue |
| value | validation | error | jsonloadsettings, argumentoutofrange, enum, validation, configuration |
| value | validation | error | jsonmergesettings, argumentoutofrange, enum, validation, configuration, merge |
| Index * not valid on {0}. | exception | error | jsonpath, type-mismatch, array-indexer |
| Step cannot be zero. | exception | error | jsonpath, array-slice, argument-validation |
| Array slice of {0} to {1} returned no results. | exception | error | jsonpath, array-slice, out-of-range |
| Array slice is not valid on {0}. | exception | error | jsonpath, type-mismatch, array-slice |
| Property '{0}' does not exist on JObject. | exception | error | jsonpath, missing-property, field-filter |
| Property '{0}' not valid on {1}. | exception | error | jsonpath, type-mismatch, field-filter |
| Property '{0}' does not exist on JObject. | exception | error | jsonpath, field-filter, multi-field |
| Properties {0} not valid on {1}. | exception | error | jsonpath, type-mismatch, multi-field |
| Unexpected character while parsing path: | exception | error | jsonpath, parse-error, syntax |
| Unexpected character following indexer: | exception | error | jsonpath, parse-error, syntax |
| Unexpected end while parsing path. | exception | error | jsonpath, parse-error, syntax |
| Array index expected. | exception | error | jsonpath, parse-error, array-indexer |
| Unexpected character while parsing path indexer: | exception | error | jsonpath, parse-error, array-indexer |
| Path ended with open indexer. | exception | error | jsonpath, parse-error, syntax |
| Path ended with open query. | exception | error | jsonpath, json, parsing, jpath |
| Unknown escape character: \ | exception | error | jsonpath, json, parsing, escaping, jpath |
| Path ended with an open string. | exception | error | jsonpath, json, parsing, jpath |
| Path ended with an open regex. | exception | error | jsonpath, json, parsing, regex, jpath |
| Could not read query operator. | exception | error | jsonpath, json, parsing, jpath |
| Index {0} outside the bounds of JArray. | exception | error | jsonpath, json, jarray, bounds, jpath |
| Index {0} outside the bounds of JConstructor. | exception | error | jsonpath, json, jconstructor, bounds, jpath |
| Index {0} not valid on {1}. | exception | error | jsonpath, json, jobject, jpath, type-mismatch |
| Newtonsoft.Json serialization is not compatible with trimmin | exception | critical | schema, json, trimming, aot, notsupported, feature-switch |
| Could not resolve schema reference '{0}'. | exception | error | schema, json, reference, jsonschema, resolution |
| Property {0} has already been defined in schema. | exception | error | schema, json, jsonschema, duplicate, validation |
| Invalid JSON schema type: {0} | exception | error | schema, json, jsonschema, validation, type |
| Unresolved circular reference for type '{0}'. Explicitly def | exception | error | schema, json, jsonschema, circular-reference, codegen |
| Unexpected contract type: {0} | exception | error | schema, json, jsonschema, codegen, contract |
| Unexpected type code '{0}' for type '{1}'. | exception | error | json-schema, schema-generation, type-mapping, reflection |
| type | exception | error | argument-null, contract-resolution, validation |
| Unable to serialize instance of '{0}'. | exception | error | serialization, blacklisted-type, stack-overflow-guard, filesystem |
| Invalid extension data attribute on '{0}'. Member '{1}' must | exception | error | extension-data, attribute-validation, contract-resolution |
| Invalid extension data attribute on '{0}'. Member '{1}' type | exception | error | extension-data, attribute-validation, contract-resolution, type-mismatch |
| Cannot set value onto extension data member '{0}'. The exten | exception | error | extension-data, deserialization, null-reference |
| Multiple constructors with the JsonConstructorAttribute. | exception | error | constructor, attribute-validation, deserialization, contract-resolution |
| Constructor for '{0}' must have no parameters or a single pa | exception | error | dictionary, constructor, attribute-validation, contract-resolution |
| Invalid attribute. Both '{0}' and '{1}' in type '{2}' have ' | exception | error | callback, attribute-validation, contract-resolution |
| Invalid Callback. Method '{3}' in type '{2}' has both '{0}' | exception | error | callback, attribute-validation, contract-resolution |
| Virtual Method '{0}' of type '{1}' cannot be marked with '{2 | exception | error | callback, attribute-validation, contract-resolution, virtual-method |
| Serialization Callback '{1}' in type '{0}' must return void. | exception | error | callback, attribute-validation, contract-resolution, return-type |
| Serialization Error Callback '{1}' in type '{0}' must have t | exception | error | callback, error-handling, attribute-validation, contract-resolution |
| Serialization Callback '{1}' in type '{0}' must have a singl | exception | error | callback, attribute-validation, contract-resolution, parameter-validation |
| Null collection of serializable members returned. | exception | error | contract-resolution, custom-resolver, null-reference, members |
| The DefaultReferenceResolver can only be used internally. | exception | error | reference-resolution, preserve-references, internal-api, misuse |
| Could not load assembly '{0}'. | exception | error | deserialization, type-name-handling, assembly-loading, serialization-binder, security |
| Could not find type '{0}' in assembly '{1}'. | exception | error | deserialization, type-name-handling, generic-type, serialization-binder, security |
| Error setting value to '{0}' on '{1}'. | exception | error | deserialization, serialization, reflection, dynamic-value-provider |
| Error getting value from '{0}' on '{1}'. | exception | error | serialization, reflection, dynamic-value-provider, getter |
| Error setting value to '{0}' on '{1}'. | exception | error | deserialization, serialization, reflection, expression-value-provider, aot |
| Error getting value from '{0}' on '{1}'. | exception | error | serialization, reflection, expression-value-provider, getter |
| Value is not a JToken. | validation | error | deserialization, iserializable, formatter-converter, jtoken |
| Insufficient permissions. Creating an uninitialized '{0}' ty | exception | critical | serialization, iserializable, security, trust, appdomain |
| A member with the name '{0}' already exists on '{1}'. Use th | exception | error | contract-resolution, duplicate-property, jsonproperty, naming-strategy |
| Current error context error is different to requested error. | exception | critical | error-context, onerror, internal, serialization |
| Could not clear error context. Error context is already null | exception | critical | error-context, internal, onerror, serialization |
| Cannot pass a null parameter to the constructor. | exception | error | converter, naming-strategy, reflection, constructor |
| No matching parameterized constructor found for '{0}'. | exception | error | converter, naming-strategy, reflection, constructor, argument-mismatch |
| No parameterless constructor defined for '{0}'. | exception | error | converter, naming-strategy, reflection, constructor |
| Error creating '{0}'. | exception | error | converter, naming-strategy, reflection, constructor, runtime-exception |
| Error setting value to '{0}' on '{1}'. | exception | error | deserialization, reflection, reflection-value-provider, setter |
| Could not create getter for {0}. ByRef return values are not | exception | error | serialization, reflection, byref, interop, reflection-value-provider |
| Error getting value from '{0}' on '{1}'. | exception | error | serialization, reflection, reflection-value-provider, getter |
| Cannot deserialize non-cubical array as multidimensional arr | exception | error | deserialization, multidimensional-array, array, collection-utils |
| Wrapped ICollection<T> does not support IndexOf. | exception | error | collection-wrapper, icollection, notsupported, index-access |
| Wrapped ICollection<T> does not support RemoveAt. | exception | error | collection-wrapper, icollection, notsupported, index-access |
| Wrapped ICollection<T> does not support Insert. | exception | error | collection-wrapper, icollection, notsupported, index-access |
| Wrapped ICollection<T> does not support indexer. | exception | error | collections, serialization, newtonsoft-json, internal |
| The value '{0}' is not of type '{1}' and cannot be used in t | validation | error | collections, type-mismatch, serialization, newtonsoft-json |
| Cannot convert {0} to BigInteger. | exception | error | conversion, biginteger, type-mismatch, newtonsoft-json |
| Can not convert from BigInteger to {0}. | exception | error | conversion, biginteger, newtonsoft-json |
| Can not convert null {0} into non-nullable {1}. | exception | error | conversion, nullable, dbnull, newtonsoft-json |
| Target type {0} is not a value type or a non-abstract class. | validation | error | conversion, reflection, type-mismatch, newtonsoft-json |
| Can not convert from {0} to {1}. | exception | error | conversion, type-mismatch, newtonsoft-json |
| Could not cast or convert from {0} to {1}. | validation | error | conversion, serialization, type-mismatch, newtonsoft-json |
| Invalid date time handling value. | validation | error | datetime, configuration, newtonsoft-json, defensive |
| Could not get constructor for {0}. | validation | error | reflection, serialization, constructor, newtonsoft-json |
| Property '{0}' does not have a getter. | validation | error | reflection, serialization, property, newtonsoft-json |
| Could not resolve type '{0}'. You may need to add a referenc | exception | error | dynamic, configuration, dependency, newtonsoft-json |
| Enum name '{0}' already exists on enum '{1}'. | exception | error | enum, serialization, configuration, newtonsoft-json |
| Enum type {0} is not a set of flags. | validation | error | enum, newtonsoft-json, configuration |
| Type provided must be an Enum. | validation | error | enum, reflection, newtonsoft-json |
| Must specify valid information for parsing in the string. | validation | error | enum, validation, newtonsoft-json |
| Integer string '{0}' is not allowed. | validation | error | enum, configuration, newtonsoft-json |
| Requested value '{0}' was not found. | validation | error | enum, serialization, newtonsoft-json |
| Property does not have a getter. | validation | error | reflection, serialization, property, newtonsoft-json |
| Property does not have a setter. | exception | error | reflection, deserialization, property, readonly, setter |
| Unable to find default constructor for | exception | error | reflection, deserialization, constructor, default-constructor |
| Could not create getter for {0}. ByRef return values are not | exception | error | reflection, serialization, byref, csharp7, property |
| Could not create getter for {0}. | exception | error | reflection, getter, member, type-mismatch |
| Could not create setter for {0}. | exception | error | reflection, setter, member, type-mismatch |
| Expected a single member with the name '{0}'. | exception | error | reflection, reflectionobject, member, ambiguous |
| Unexpected member type '{0}' for member '{1}'. | exception | error | reflection, reflectionobject, member-type, event |
| '{0}' is not a generic interface definition. | exception | error | reflection, generics, interface, argument |
| '{0}' is not a generic class definition. | exception | error | reflection, generics, class, argument |
| Type {0} is not a collection. | exception | error | reflection, collection, generics, open-generic |
| Type {0} is not a dictionary. | exception | error | reflection, dictionary, generics, open-generic |
| MemberInfo must be of type FieldInfo, PropertyInfo, EventInf | exception | error | reflection, member, type, member-type |
| MemberInfo '{0}' has index parameters | exception | error | reflection, indexed-property, property, indexer |
| MemberInfo '{0}' is not of type FieldInfo or PropertyInfo | exception | error | reflection, member, value, member-type |
| MemberInfo '{0}' must be of type FieldInfo or PropertyInfo | exception | error | reflection, member, value, member-type |
| Cannot get attributes from '{0}'. | exception | error | reflection, attributes, portable40, legacy, pcl |
| start | exception | error | string, argument, validation, trim, internal |
| length | exception | error | argument-validation, strings, argumentoutofrange |
| {parameterName} | exception | error | argument-validation, null-reference, argumentnullexception |