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