The Code like this:
string jsonString = "{ \"array\": [[1.44,22,33], [1.445,2222,3333]]" +
"\"object\": {\"key1\":\"value1\", \"key2\":256}, " +
"\"string\": \"The quick brown fox \\\"jumps\\\" over the lazy dog \", " +
"\"unicode\": \"\\u3041 Men\\u00fa sesi\\u00f3n\", " +
"\"int\": 65536, " +
"\"float\": 3.1415926, " +
"\"bool\": true, " +
"\"null\": null }";
//Dictionary<string, object> dict = MiniJSON.LC_MiniJson.Deserialize(jsonString) as Dictionary.<string. Object>;
Dictionary<string, object> dict = MiniJSON.LC_MiniJson.Deserialize(jsonString) as Dictionary<string, object>;
Debug.Log("deserialized: " + dict.GetType());
//List<object> lst = (dict["array"]) as List<object>;
Debug.Log("dict['array'][0]: " + (((dict["array"]) as List<object>)[0]));
Debug.Log("dict['string']: " + dict["string"].ToString());
Debug.Log("dict['float']: " + dict["float"]); // floats come out as doubles
Debug.Log("dict['int']: " + dict["int"]); // ints come out as longs
Debug.Log("dict['unicode']: " + dict["unicode"].ToString());
Dictionary<string, object> dict2 = (dict["object"]) as Dictionary<string, object>;
string str = MiniJSON.LC_MiniJson.Serialize(dict2);
今度は「配列」の値を取得したいと思います。minijson を使用して値を取得する方法がわかりません。誰が経験した?