javascript - 无法使用 Angular 7 读取以下 JSON
问题描述
我无法阅读下面提到的从 Rest API收到的JSON 。
{
"details": {
"id": 21,
"gstin": "27AACCG7831Q1Z0",
"entityName": "GENX ENTERTAINMENT LIMITED",
"entityPan": "AACCG7831Q",
"entityTan": "abhishek123",
"entityCin": "null",
"entityWebsite": null,
"natureOfBusiness": null,
"constitution": "\"Public Limited Company\""
},
"addresses": [
{
"id": 22,
"buildingName": "\"Solitaire Corporate Park\"",
"location": null,
"street": null,
"buildingNo": "\"S-14\"",
"state": "bihar",
"district": "\"\"",
"city": "\"\"",
"flateNo": "\"1\"",
"pincode": "\"400093\"",
"isPrimary": false
}
]
}
我想将上述以 JSON 格式接收到的数据转换成一个表格。
解决方案
推荐阅读
- r - 矩阵的求和函数
- python - 如何使用 Python COM 过滤来自某些发件人的电子邮件?
- java - JavaCC 创建自定义 Token 类
- python-3.x - 设置写入路径 (MAC)
- javascript - 如何在没有库的情况下使用来自 node.js 的 websocket 正确发送二进制消息?
- c# - 位图在循环中不能正常工作
- typescript - 打字稿:ddd +传递消息
- python - 使用pyxl确定excel文件中合并单元格的范围
- ruby-on-rails-5 - 我该如何实施?
- python - TypeError:fit_generator() 得到了一个意外的关键字参数“nb_val_samples”