JToken ICustomMobileServiceTableSerialization.Serialize() { JArray children = new JArray(); foreach (SimpleTree child in Children) { children.Append(MobileServiceTableSerializer.Serialize(child)); } return new JObject() .Set("id", Id) .Set("name", Name) .Set("children", children); }