cocos cretator 如何读取JSON文件中的具体内容?

JSON文件

{
“engine”: “Box2D”,
“version”: “2.3.1”,

"bodies":
[
  {
      "name": "root",
      "body":
      {
          "type": "static",
          "gravityScale": 0.2
      }
  },
  {
      "name": "aa1",
      "body":
      {
          "type": "static",
          "gravityScale": 0.2
      }
  }
],

"joints":
[
  {
      "bodyA": "root",
      "bodyB": "aa1",
      "lowerAngle": 0.5,
      "enableLimit": true
  },
  {
      "bodyA": "aa1",
      "bodyB": "aa2",
      "lowerAngle": -0.5,
      "enableLimit": true
  }
]

}

读取engine的内容,或者其他的内容。谢谢

1赞

https://docs.cocos.com/creator/manual/zh/asset-workflow/json.html