public void Append() { JsonArray array = null; array.Append(JsonValue.CreateStringValue("test")); array = new JsonArray() .Append(JsonValue.CreateBooleanValue(true)) .Append(JsonValue.CreateStringValue("test")); Assert.AreEqual(2, array.Count); }
IJsonValue ICustomMobileServiceTableSerialization.Serialize() { JsonArray children = new JsonArray(); foreach (SimpleTree child in Children) { children.Append(MobileServiceTableSerializer.Serialize(child)); } return new JsonObject() .Set("id", Id) .Set("name", Name) .Set("children", children); }
IJsonValue ICustomMobileServiceTableSerialization.Serialize() { JsonArray children = new JsonArray(); foreach (SimpleTree child in Children) { children.Append(MobileServiceTableSerializer.Serialize(child)); } return(new JsonObject() .Set("id", Id) .Set("name", Name) .Set("children", children)); }