Collection+JSON的示例不顯示嵌套集合的示例。任何人都可以使用嵌套集合指向Collection + JSON的示例,或者描述他們獲得成功的體驗。嵌套集合+ JSON超媒體類型示例
例如,將這項工作的頂層入口點鏈接到兩個子類別:
{
"collection": {
"version": "1.0",
"href": "http://example.org/friends/",
"links": [
{
"rel": "inbox",
"href": "http://example.org/inbox"
},
{
"rel": "contacts",
"href": "http://example.org/contacts"
}
]
}
}