internal static object RevertUndefined(JsonDeserializer deserializer, object value, SerializationInfo type) { if (value == null) { return(null); } var d = value as JsonDict; if (d != null) { return(deserializer.CreateObject(d, type, null)); } var a = value as JsonArray; if (a != null) { return(deserializer.CreateList(a, type, null)); } return(value); }
internal static object RevertList(JsonDeserializer deserializer, object value, SerializationInfo type) { return(deserializer.CreateList((JsonArray)value, type, null)); }