9 instantiations of DataContractJsonSerializer
System.ServiceModel.Web (9)
System\ServiceModel\Description\DataContractJsonSerializerOperationBehavior.cs (2)
30
return new
DataContractJsonSerializer
(type, name, knownTypes, this.MaxItemsInObjectGraph, this.IgnoreExtensionDataObject, this.DataContractSurrogate, alwaysEmitTypeInformation);
35
return new
DataContractJsonSerializer
(type, name, knownTypes, this.MaxItemsInObjectGraph, this.IgnoreExtensionDataObject, this.DataContractSurrogate, alwaysEmitTypeInformation);
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (1)
23
static readonly DataContractJsonSerializer jsonFaultSerializer = new
DataContractJsonSerializer
(typeof(JsonFaultDetail));
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (3)
190
return new
DataContractJsonSerializer
(parameterType);
194
return new
DataContractJsonSerializer
(parameterType, operationDescription.KnownTypes);
198
return new
DataContractJsonSerializer
(parameterType, this.operationDescription.KnownTypes, this.dataContractSerializerOperationBehavior.maxItemsInObjectGraph,
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (1)
220
return new
DataContractJsonSerializer
(type, this.knownTypes, this.maxItemsInObjectGraph, this.ignoreExtensionData, this.surrogate, false);
System\ServiceModel\Dispatcher\WebErrorHandler.cs (1)
77
fault = context.CreateJsonResponse(webFaultException.DetailObject, new
DataContractJsonSerializer
(webFaultException.DetailType, webFaultException.KnownTypes));
System\ServiceModel\Web\WebOperationContext.cs (1)
95
DataContractJsonSerializer serializer = new
DataContractJsonSerializer
(typeof(T));
37 references to DataContractJsonSerializer
System.Runtime.Serialization (22)
System\Runtime\Serialization\DateTimeFormat.cs (1)
11
/// serialized or deserialized by <see cref="Json.
DataContractJsonSerializer
"/>
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (3)
429
return
DataContractJsonSerializer
.ReadJsonValue(contract, xmlReader, null);
480
DataContractJsonSerializer
.WriteJsonValue(JsonDataContract.GetJsonDataContract(contract), writer, graph, null, declaredType.TypeHandle); // XmlObjectSerializerWriteContextComplexJson
486
contract =
DataContractJsonSerializer
.GetDataContract(contract, declaredType, graphType);
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
179
decodedMemberNames[i] =
DataContractJsonSerializer
.ConvertXmlNameToJsonName(traditionalClassDataContract.MemberNames[i]);
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (2)
353
readJsonValueMethod = typeof(
DataContractJsonSerializer
).GetMethod("ReadJsonValue", Globals.ScanAllMembers);
509
writeJsonValueMethod = typeof(
DataContractJsonSerializer
).GetMethod("WriteJsonValue", Globals.ScanAllMembers);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
305
bool requiresNameAttribute =
DataContractJsonSerializer
.CheckIfXmlNameRequiresMapping(classContract.MemberNames[i]);
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (1)
46
return
DataContractJsonSerializer
.ReadJsonValue(DataContract.GetDataContract(Globals.TypeOfObjectArray), jsonReader, context);
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (6)
25
public XmlObjectSerializerReadContextComplexJson(
DataContractJsonSerializer
serializer, DataContract rootTypeDataContract)
116
internal static XmlObjectSerializerReadContextComplexJson CreateContext(
DataContractJsonSerializer
serializer, DataContract rootTypeDataContract)
132
return
DataContractJsonSerializer
.ReadJsonValue(dataContract, reader, this);
300
DataContractJsonSerializer
.CheckIfTypeIsReference(dataContract);
307
DataContractJsonSerializer
.CheckIfTypeIsReference(dataContract);
314
DataContractJsonSerializer
.CheckIfTypeIsReference(dataContract);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (7)
21
public XmlObjectSerializerWriteContextComplexJson(
DataContractJsonSerializer
serializer, DataContract rootTypeDataContract)
35
internal static XmlObjectSerializerWriteContextComplexJson CreateContext(
DataContractJsonSerializer
serializer, DataContract rootTypeDataContract)
201
DataContractJsonSerializer
.WriteJsonValue(jsonDataContract, xmlWriter, obj, this, declaredTypeHandle);
206
DataContractJsonSerializer
.WriteJsonNull(xmlWriter);
368
DataContractJsonSerializer
.CheckIfTypeIsReference(dataContract);
375
DataContractJsonSerializer
.CheckIfTypeIsReference(dataContract);
382
DataContractJsonSerializer
.CheckIfTypeIsReference(dataContract);
System.ServiceModel.Web (15)
AssemblyInfo.cs (1)
4
[assembly: TypeForwardedTo(typeof(System.Runtime.Serialization.Json.
DataContractJsonSerializer
))]
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (1)
23
static readonly
DataContractJsonSerializer
jsonFaultSerializer = new DataContractJsonSerializer(typeof(JsonFaultDetail));
System\ServiceModel\Dispatcher\DataContractJsonSerializerOperationFormatter.cs (10)
161
DataContractJsonSerializer
serializer = part.Serializer as
DataContractJsonSerializer
;
282
DataContractJsonSerializer
serializer = replyMessageInfo.ReturnPart.Serializer as
DataContractJsonSerializer
;
315
static
DataContractJsonSerializer
RecreateDataContractJsonSerializer(
DataContractJsonSerializer
serializer, string newRootName)
354
DataContractJsonSerializer
serializer = part.Serializer as
DataContractJsonSerializer
;
612
DataContractJsonSerializer
serializer = part.Serializer as
DataContractJsonSerializer
;
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (1)
186
DataContractJsonSerializer
GetDataContractJsonSerializer(Type parameterType)
System\ServiceModel\Web\WebOperationContext.cs (2)
95
DataContractJsonSerializer
serializer = new DataContractJsonSerializer(typeof(T));
100
public Message CreateJsonResponse<T>(T instance,
DataContractJsonSerializer
serializer)