-Added support for DataContractAttribute and DataMemberAttribute to JsonSerializer
-Added support for serializing private members by marking them with JsonPropertyAttribute or DataMemberAttribute
This commit is contained in:
@@ -51,7 +51,6 @@ namespace Newtonsoft.Json
|
||||
private ObjectCreationHandling _objectCreationHandling;
|
||||
private NullValueHandling _nullValueHandling;
|
||||
private DefaultValueHandling _defaultValueHandling;
|
||||
private int _level;
|
||||
private JsonConverterCollection _converters;
|
||||
private IMappingResolver _mappingResolver;
|
||||
|
||||
@@ -258,8 +257,6 @@ namespace Newtonsoft.Json
|
||||
|
||||
private object CreateObject(JsonReader reader, Type objectType, object existingValue, JsonConverter memberConverter)
|
||||
{
|
||||
_level++;
|
||||
|
||||
object value;
|
||||
JsonConverter converter;
|
||||
|
||||
@@ -343,8 +340,6 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
}
|
||||
|
||||
_level--;
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user