最近在看到一个比较好玩的网站,可以将 JSON
以可视化的方式展现出现,比如存在一下JSON
数据:
{"id": "f3bbc3bc-9f34-4bf7-8a0f-7e6f6e6fbb9a","isActive": false,"age": 25,"name": "Lane Villarreal","email": "lanevillarreal@artiq.com","countries": ["Slovenia","Greenland"],"friends": [{"id": 0,"name": "Marcy Campbell","email": "marcycampbell@artiq.com","countries": ["Costa Rica","Gabon"]},{"id": 1,"name": "Britt Becker","email": "brittbecker@artiq.com","countries": ["Jamaica","Singapore"]}]
}
然后可视化之后,就可以变成一下逻辑了:
看上去还是蛮清晰的,大家想尝试的话,可以尝试访问:
https://apvarun.github.io/graphize/
在右上角输入你的JSON,然后点击Render
即可: