提问人:Finalgof 提问时间:6/14/2023 更新时间:6/14/2023 访问量:14
如何使用 url 访问嵌套 json 的段?
How to access segments of nested json using url?
问:
例如json http://example/api:
{
"shop":{
"id":"shop",
"employee":{
"id":"employee",
"name":"som",
"age":10
}
"departments":{
"id":"departments",
"sales":{
"id":"sales",
"products":[]
}
}
}
}
要访问商店部分,我可以使用 http://exampleapi/shop,但同样不适用于员工、部门和销售。我见过很少使用这种方法的参考来源,这种方法还在使用吗?
还尝试了$id,$ref。
答: 暂无答案
评论