【发布时间】:2009-01-19 08:32:49
【问题描述】:
这是我的 Json 数据:
[{"ok" : false,
"details" : [{"n" : "Email",
"v" : "The email address you entered is not correct."},
{"n" : "NameFull",
"v" : "Please enter your full name."}]
}]
我发现读取单级 Json 数据非常容易,但是对于像上面这样的多级数据,我无法通过搜索互联网找到答案。我只想阅读上述值。就像从“详细信息”下的“n”和“v”读取值。
【问题讨论】:
-
你能把它改成源代码吗?
-
Json 数据已经处于源代码模式,但是 StackOverflow 可能无法高亮 Json 文本。
-
它看起来也应该很漂亮:)
-
这真的很酷!谢谢! ;o)