public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { var arr = JArray.Load(reader); var qc = new QuestionCollection(); foreach (JObject item in arr) { qc.Add(item.ToObject <Question>()); } return(qc); }
public Form() { Header = new FieldBlock(this); Questions = new QuestionCollection(this); Footer = new FieldBlock(this); }