예제 #1
0
        public Base Parse(JsonReader reader, Type dataType)
        {
            var jsonReader =
                FhirJsonNode.Read(reader, ModelInfo.GetFhirTypeNameForType(dataType), jsonNodeSettings);

            return(Parse(jsonReader, dataType));
        }
예제 #2
0
        public Base Parse(string json, Type dataType = null)
        {
            var jsonReader =
                FhirJsonNode.Parse(json, dataType != null ? ModelInfo.GetFhirTypeNameForType(dataType) : null, jsonNodeSettings);

            return(Parse(jsonReader, dataType));
        }
예제 #3
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));
        }
예제 #4
0
 private FhirJsonNode(FhirJsonNode parent, string name, JValue value, JObject content, bool usesShadow, int?arrayIndex, string location)
 {
     Name             = name;
     JsonValue        = value;
     JsonObject       = content;
     ArrayIndex       = arrayIndex;
     Location         = location;
     UsesShadow       = usesShadow;
     _settings        = parent._settings;
     ExceptionHandler = parent.ExceptionHandler;
 }
 public static IElementNavigator Create(string json, string rootName = null) =>
 FhirJsonNode.Parse(json, rootName).ToElementNavigator();
 public static IElementNavigator Create(JsonReader reader, string rootName = null) =>
 FhirJsonNode.Read(reader, rootName).ToElementNavigator();
 public static IElementNavigator Create(JObject root, string rootName = null) =>
 FhirJsonNode.Create(root, rootName).ToElementNavigator();