{
"verb": {
"id": "http://bao.mijnklas.nl/xapi/verbs/getChampList",
"display": {
"nl-NL": "Inhoud"
}
},
"object": {
"id": "http://bao.mijnklas.nl/xapi/activities/champList",
"objectType": "Activity",
"definition": {
"extensions": {
"http://bao.mijnklas.nl/xapi/extensions/champList": {
"competitionId": "1",
"numberOfChamps": "3"
}
}
}
}
}
Response example:
{
"verb" : {
"id" : "http://bao.mijnklas.nl/xapi/verbs/getChampList"
},
"result" : {
"duration" : "0",
"extensions" : {
"objectType" : "http://bao.mijnklas.nl/xapi/extensions/json",
"http://bao.mijnklas.nl/xapi/extensions/json" : {
"name" : "champList",
"value" : "{\"ChampList\":[{\"Rank\":1,\"UserId\":4406545,\"FirstName\":\"Edwin(DEV)\",\"Preposition\":\"- \",\"SurName\":\"- \",\"Residence\":\"- \",\"GroupName\":\"- \",\"Score\":615,\"NumberOfTimesPlayed\":1},{\"Rank\":1,\"UserId\":4406658,\"FirstName\":\"Marc\",\"Preposition\":\"- \",\"SurName\":\"- \",\"Residence\":\"- \",\"GroupName\":\"- \",\"Score\":575,\"NumberOfTimesPlayed\":1},{\"Rank\":1,\"UserId\":4406778,\"FirstName\":\"Martijn LL\",\"Preposition\":\"- \",\"SurName\":\"- \",\"Residence\":\"- \",\"GroupName\":\"- \",\"Score\":0,\"NumberOfTimesPlayed\":1}],\"Properties\":[]}"
}
}
}
}
/* If you un-escape and nicely format "value", it looks like this: */
{
"ChampList" : [{
"Rank" : 1,
"UserId" : 4406545,
"FirstName" : "Edwin(DEV)",
"Preposition" : "- ",
"SurName" : "- ",
"Residence" : "- ",
"GroupName" : "- ",
"Score" : 615,
"NumberOfTimesPlayed" : 1
}, {
"Rank" : 1,
"UserId" : 4406658,
"FirstName" : "Marc",
"Preposition" : "- ",
"SurName" : "- ",
"Residence" : "- ",
"GroupName" : "- ",
"Score" : 575,
"NumberOfTimesPlayed" : 1
}, {
"Rank" : 1,
"UserId" : 4406778,
"FirstName" : "Martijn LL",
"Preposition" : "- ",
"SurName" : "- ",
"Residence" : "- ",
"GroupName" : "- ",
"Score" : 0,
"NumberOfTimesPlayed" : 1
}
],
"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