在View的asp.Net应用程序(MVC 3)中,我正在使用一些jquery控件。我有json
{
"text":"Books",
"state":"open",
"attributes":{
"url":"/demo/book/abc",
"price":100
}
我如何获得attrubutes的价值?
最佳答案
我觉得你需要
var json = {
"text":"Books",
"state":"open",
"attributes":{
"url":"/demo/book/abc",
"price":100
}
json.attributes.url
例如。
关于c# - 从json格式对象获取值,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/11984845/