예제 #1
0
        public void TestMethod1()
        {
            //Console.WriteLine(jSONInspector.FindValueFromKey(initialJSONstring, "para"));
            jSONInspector.ParseJsonString(thirdJson);
            // Console.WriteLine(jSONInspector.GetKeys() + Environment.NewLine);
            //jSONInspector.GetKeys();
            //string key1 = jSONInspector.IsolateKey("web-app");
            string value1 = jSONInspector.GetValue("web-app");

            //Console.WriteLine(value2 + Environment.NewLine);



            jSONInspector.ParseJsonString(value1);
            //jSONInspector.GetKeys();
            //string key2 = jSONInspector.IsolateKey("servlet");
            string value2 = jSONInspector.GetValue("servlet[0]");

            //Console.WriteLine(value2);
            //Console.WriteLine(value2);


            jSONInspector.ParseJsonString(value2);
            //Console.WriteLine(jSONInspector.GetKeys());
            //string key3 = jSONInspector.IsolateKey("init-param");
            string value3 = jSONInspector.GetValue("init-param");

            //Console.WriteLine(value3);

            jSONInspector.ParseJsonString(value3);
            //jSONInspector.GetKeys();
            // string key4 = jSONInspector.IsolateKey("dataStoreUrl");
            string value4 = jSONInspector.GetValue("dataStoreUrl");

            Console.WriteLine(value4);
        }