public void FacadeSimpleDictionaryTest()
        {
            string      json = "\r\n                {\r\n                    \"test1\" : 5,\r\n                    \"test2\" : 10,\r\n                    \"test3\" : \"asdf\"\r\n                }";
            IDictionary dictionaryForJson = JSONManager.getDictionaryForJson(json);

            Assert.IsTrue(dictionaryForJson.Count == 3);
            Assert.AreEqual((int)dictionaryForJson["test1"], 5);
            Assert.AreEqual((int)dictionaryForJson["test2"], 10);
            Assert.AreEqual((string)dictionaryForJson["test3"], "asdf");
        }
        public void FacadeMixedNestedTest()
        {
            string      json = "\r\n                {\r\n                    \"testKey1\":\r\n                    [\r\n                        {\r\n                            \"testB1\" : 6,\r\n                            \"testB2\" : \"hi\"\r\n                        },\r\n                        \"testA2\",\r\n                        \"testA3\"\r\n                    ],\r\n\r\n                    \"testKey2\":\r\n                    {\r\n                    \"testB1\" : true,\r\n                    \"testB2\" : false,\r\n                    \"testB3\" : null\r\n                    }\r\n                }";
            IDictionary dictionaryForJson = JSONManager.getDictionaryForJson(json);

            Assert.IsTrue(dictionaryForJson != null && dictionaryForJson.Count == 2);
            IList list = (IList)dictionaryForJson["testKey1"];

            Assert.IsTrue(list != null && list.Count == 3);
            IDictionary dictionary = (IDictionary)list[0];

            Assert.IsTrue(dictionary != null && dictionary.Count == 2);
            Assert.AreEqual(dictionary["testB1"], 6);
            Assert.AreEqual(dictionary["testB2"], "hi");
        }
        public void FacadeNestedObjectTest()
        {
            string      json = "\r\n                {\r\n                    \"testKey1\":\r\n                    {\r\n                    \"testA1\" : 4,\r\n                    \"testA2\" : 6,\r\n                    \"testA3\" : \"qwerty\"\r\n                    },\r\n\r\n                    \"testKey2\":\r\n                    {\r\n                    \"testB1\" : true,\r\n                    \"testB2\" : false,\r\n                    \"testB3\" : null\r\n                    }\r\n                }";
            IDictionary dictionaryForJson = JSONManager.getDictionaryForJson(json);

            Assert.IsTrue(dictionaryForJson != null && dictionaryForJson.Count == 2);
            IDictionary dictionary = (IDictionary)dictionaryForJson["testKey1"];

            Assert.IsTrue(dictionary != null && dictionary.Count == 3);
            Assert.AreEqual(dictionary["testA1"], 4);
            Assert.AreEqual(dictionary["testA2"], 6);
            Assert.AreEqual(dictionary["testA3"], "qwerty");
            IDictionary dictionary2 = (IDictionary)dictionaryForJson["testKey2"];

            Assert.IsTrue(dictionary2 != null && dictionary2.Count == 3);
            Assert.AreEqual(dictionary2["testB1"], true);
            Assert.AreEqual(dictionary2["testB2"], false);
            Assert.AreEqual(dictionary2["testB3"], null);
        }