我有一个 jArray 和来自该 jArray 的字符串“message2”:
[{"date":"2012","count":"1","message" : "message1"}, {"date":"2011","count":"2","message":"message2"}}
我如何确定来自哪个 JSONObject“message2”,然后确定与该消息相关的“计数”?
伪代码:
x = count of jArray element that contains the string "message2"