System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (5)
399if (IsRootElement(reader, RootContract, RootName, XmlDictionaryString.Empty))
404return IsJsonLocalName(reader, RootName.Value);
418throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.ExpectingElement, XmlDictionaryString.Empty, RootName), xmlReader));
505writer.WriteAttributeString(null, JsonGlobals.itemString, null, RootName.Value);
509writer.WriteStartElement(RootName, XmlDictionaryString.Empty);