JSONArray搜索

时间:2015-06-03 05:39:17

标签: android arrays search

我有以下格式的JSONArray:

[
    {
     "id":11,"value":"36",
     "mSign":"Mesha","fSign":"Mesha",
     "desc":"Very Good"
     }, 
    {
     "id":12,"value":"33",
     "mSign":"Mesha","fSign":"Vrishabh",
     "desc":" Good"
     }, 
     {
     "id":13,"value":"16",
     "mSign":"Mesha","fSign":"Kanya",
     "desc":"Not Matching"
     }, 
     {
     "id":14,"value":"21",
     "mSign":"Mesha","fSign":"Dhanu",
     "desc":"Average"
     } ]

我正在生成' genid'来自之前的活动&想要将它与上面的JSON" id"进行比较。

但eclipse强迫我将JSONArray转换为数组!

我的问题是

  1. 如何将上面的JSONArray转换为数组?
  2. 还有其他简单方法吗?

0 个答案:

没有答案