我想字符串轉換是這樣的:字符串轉換爲二維數組(JAVA)
{"Shops":[
{"city":"Riga","shops":[{"a":"some info here","b":"...","c":"..."},{"a":"some info here","b":"...","c":"..."}]},{"city":"Liepaja","shops":[{"a":"info here","b":"info....","c":"..."}]
]}
到二維數組,像
shops[0][0]=>{"a":"some info here","b":"...","c":"..."}
shops[1][0]=>{"a":"info here","b":"info....","c":"..."}
這可能嗎?有沒有簡單的方法來做到這一點?
我已經搜查,嘗試過,但我仍然不知道該怎麼做。 我是新來的java。
很難看到你想要做什麼。請格式化您的代碼以清楚說明這兩個數組條目與原始字符串的關係。 –
你確定這是java嗎?它看起來像JavaScript ... – PaulProgrammer
看看[JSON處理API](http://www.oracle.com/technetwork/articles/java/json-1973242.html)。 – Zong