【发布时间】:2013-02-01 12:21:12
【问题描述】:
我有一个包含字符串的数组,而 json 有对象,我只需要从数组中获取 json。如何从数组中获取json?我在下面展示了数组:
array (
"",
"",
"",
"sda@sdas.com",
"[{ \"field_value\" : \"\\/Users\\/poornima\\/Library\\/Application Support\\/iPhone Simulator\\/5.1\\/Applications\\/BCA9D949-D85D-4CA7-B753-7315C0383137\\/Documents\\/EGOoTtqT4e.png\", \"field_name\" : \"Photo\"},{ \"field_value\" : \"\", \"field_name\" : \"Signature\"},{ \"field_value\" : \"\", \"field_name\" : \"File Upload\"}]",
"",
"",
"",
"37.785834",
"-122.406417",
"2013-02-01 05:44:01",
"superadmin@gmail.com",
""
)
任何帮助将不胜感激
【问题讨论】:
-
呃,引用数组元素? (记住,JSON 是一个字符串。)如果您想要 JSON 的对象表示,请通过 JSON 解析器发送它。
-
或者您不知道如何阅读 Apple NSArray 文档以了解如何提取数组元素?
标签: objective-c nsarray