예제 #1
0
        public void Test_0000_EmptyJSON()
        {
            JsonObject json = new JsonObject();

            Assert.AreEqual("{}", json.ToString());
        }
예제 #2
0
 static string ExpandDictionary(Dictionary <string, object> dict)
 {
     JsonOrg.JsonObject json = new JsonOrg.JsonObject(dict);
     return(json.ToString(2));
 }
        public void Test_0001_field_1()
        {
            JsonObject json = new JsonObject("{\"key\":\"value\"}");

            Assert.AreEqual("{\"key\":\"value\"}", json.ToString());
        }