Exemplo n.º 1
0
        public Base Parse(JsonReader reader, Type dataType)
        {
            var jsonReader =
                FhirJsonNode.Read(reader, ModelInfo.GetFhirTypeNameForType(dataType), jsonNodeSettings);

            return(Parse(jsonReader, dataType));
        }
Exemplo n.º 2
0
        public Base Parse(JsonReader reader, Type dataType = null)
        {
            var rootName = dataType != null?ModelInfo.GetFhirTypeNameForType(dataType) : null;

            var jsonReader = FhirJsonNode.Read(reader, rootName, buildNodeSettings(Settings));

            return(Parse(jsonReader, dataType));
        }
 public static IElementNavigator Create(JsonReader reader, string rootName = null) =>
 FhirJsonNode.Read(reader, rootName).ToElementNavigator();