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

            return(Parse(jsonReader, dataType));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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();