{
"verb": {
"id": "http://bao.mijnklas.nl/xapi/verbs/getSchoolChampList",
"display": {
"nl-NL": "Inhoud"
}
},
"object": {
"id": "http://bao.mijnklas.nl/xapi/activities/schoolChampList",
"objectType": "Activity",
"definition": {
"extensions": {
"http://bao.mijnklas.nl/xapi/extensions/schoolChampList": {
"competitionId": "1",
"institutionId": "2"
}
}
}
}
}
Response example:
{
"verb" : {
"id" : "http://bao.mijnklas.nl/xapi/verbs/getSchoolChampList"
},
"result" : {
"duration" : "0",
"extensions" : {
"objectType" : "http://bao.mijnklas.nl/xapi/extensions/json",
"http://bao.mijnklas.nl/xapi/extensions/json" : {
"name" : "schoolChampList",
"value" : "{\"ChampList\":[{\"Rank\":1,\"UserId\":4406498,\"FirstName\":\"Pietje\",\"Preposition\":\"-\",\"SurName\":\"-\",\"Residence\":\"-\",\"GroupName\":\"-\",\"Score\":745,\"NumberOfTimesPlayed\":12},{\"Rank\":2,\"UserId\":4406778,\"FirstName\":\"Tamira\",\"Preposition\":\"-\",\"SurName\":\"-\",\"Residence\":\"-\",\"GroupName\":\"-\",\"Score\":380,\"NumberOfTimesPlayed\":13},{\"Rank\":4,\"UserId\":4406545,\"FirstName\":\"Margriet\",\"Preposition\":\"-\",\"SurName\":\"-\",\"Residence\":\"-\",\"GroupName\":\"-\",\"Score\":210,\"NumberOfTimesPlayed\":4},{\"Rank\":5,\"UserId\":4406834,\"FirstName\":\"Tom\",\"Preposition\":\"-\",\"SurName\":\"-\",\"Residence\":\"-\",\"GroupName\":\"-\",\"Score\":60,\"NumberOfTimesPlayed\":5}],\"Properties\":[]}"
}
}
}
}
/* If you un-escape and nicely format "value", it looks like this: */
{
"ChampList" : [{
"Rank" : 1,
"UserId" : 4406498,
"FirstName" : "Pietje",
"Preposition" : "-",
"SurName" : "-",
"Residence" : "-",
"GroupName" : "-",
"Score" : 745,
"NumberOfTimesPlayed" : 12
}, {
"Rank" : 2,
"UserId" : 4406778,
"FirstName" : "Tamira",
"Preposition" : "-",
"SurName" : "-",
"Residence" : "-",
"GroupName" : "-",
"Score" : 380,
"NumberOfTimesPlayed" : 13
}, {
"Rank" : 4,
"UserId" : 4406545,
"FirstName" : "Margriet",
"Preposition" : "-",
"SurName" : "-",
"Residence" : "-",
"GroupName" : "-",
"Score" : 210,
"NumberOfTimesPlayed" : 4
}, {
"Rank" : 5,
"UserId" : 4406834,
"FirstName" : "Tom",
"Preposition" : "-",
"SurName" : "-",
"Residence" : "-",
"GroupName" : "-",
"Score" : 60,
"NumberOfTimesPlayed" : 5
}
],
"Properties" : []
}
Different colors in the JSON Representation give special meaning to that part of the json.
Optional: May be added for clarity. Bao xApi ignores it if present.
Removed: Bao xApi has no use for it but TinCan Api requests/requires it. Bao xApi ignores it if present.
Comment: Comment for clarification of the property. This should not be present in the json representation