📜  颤振访问对象内部的json对象 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:06.686000             🧑  作者: Mango

代码示例1
myJson = {
  "label": "This is a string",
  "value": {
      "address": "This is a string",
    "country": "This is a string"
  }
}

//to access address field
var decodedJson = json.decode(myJson);
var jsonValue = json.decode(decodedJson['value']);
print(jsonValue['address']);