Example #1
0
        public void Parse_simple_Array()
        {
            var d = Json.Parse <int[]>("[1,2,3]");

            Assert.AllItemsAreEqual(d, new int[] { 1, 2, 3 });
        }
Example #2
0
        public void Parse_Empty_Array()
        {
            var d = Json.Parse <object[]>("[]");

            Assert.AllItemsAreEqual(d as object[], new object[] { });
        }