# Appendix A
Example 1: A Single JSON Statement
{
"id": "6690e6c9-3ef0-4ed3-8b37-7f3964730bee",
"actor": {
"name": "Team PB",
"mbox": "mailto:teampb@example.com",
"member": [
{
"name": "Andrew Downes",
"account": {
"homePage": "http://www.example.com",
"name": "13936749"
},
"objectType": "Agent"
},
{
"name": "Toby Nichols",
"openid": "http://toby.openid.example.org/",
"objectType": "Agent"
},
{
"name": "Ena Hills",
"mbox_sha1sum": "ebd31e95054c018b10727ccffd2ef2ec3a016ee9",
"objectType": "Agent"
}
],
"objectType": "Group"
},
"verb": {
"id": "http://adlnet.gov/expapi/verbs/attended",
"display": {
"en-GB": "attended",
"en-US": "attended"
}
},
"result": {
"extensions": {
"http://example.com/profiles/meetings/resultextensions/minuteslocation": "X:meetingsminutesexamplemeeting.one"
},
"success": true,
"completion": true,
"response": "We agreed on some example actions.",
"duration": "PT1H0M0S"
},
"context": {
"registration": "ec531277-b57b-4c15-8d91-d292c5b2b8f7",
"contextActivities": {
"parent": [
{
"id": "http://www.example.com/meetings/series/267",
"objectType": "Activity"
}
],
"category": [
{
"id": "http://www.example.com/meetings/categories/teammeeting",
"objectType": "Activity",
"definition": {
"name": {
"en": "team meeting"
},
"description": {
"en": "A category of meeting used for regular team meetings."
},
"type": "http://example.com/expapi/activities/meetingcategory"
}
}
],
"other": [
{
"id": "http://www.example.com/meetings/occurances/34257",
"objectType": "Activity"
},
{
"id": "http://www.example.com/meetings/occurances/3425567",
"objectType": "Activity"
}
]
},
"instructor": {
"name": "Andrew Downes",
"account": {
"homePage": "http://www.example.com",
"name": "13936749"
},
"objectType": "Agent"
},
"team": {
"name": "Team PB",
"mbox": "mailto:teampb@example.com",
"objectType": "Group"
},
"platform": "Example virtual meeting software",
"language": "tlh",
"statement": {
"objectType": "StatementRef",
"id": "6690e6c9-3ef0-4ed3-8b37-7f3964730bee"
}
},
"timestamp": "2013-05-18T05:32:34.804+00:00",
"stored": "2013-05-18T05:32:34.804+00:00",
"authority": {
"account": {
"homePage": "http://cloud.scorm.com/",
"name": "anonymous"
},
"objectType": "Agent"
},
"version": "1.0.0",
"object": {
"id": "http://www.example.com/meetings/occurances/34534",
"definition": {
"extensions": {
"http://example.com/profiles/meetings/activitydefinitionextensions/room": {
"name": "Kilby",
"id": "http://example.com/rooms/342"
}
},
"name": {
"en-GB": "example meeting",
"en-US": "example meeting"
},
"description": {
"en-GB": "An example meeting that happened on a specific occasion with certain people present.",
"en-US": "An example meeting that happened on a specific occasion with certain people present."
},
"type": "http://adlnet.gov/expapi/activities/meeting",
"moreInfo": "http://virtualmeeting.example.com/345256"
},
"objectType": "Activity"
}
}
Example 2 - A JSON Array
[
{
"id": "fd41c918-b88b-4b20-a0a5-a4c32391aaa0",
"timestamp": "2015-11-18T12:17:00+00:00",
"actor": {
"objectType": "Agent",
"name": "Project Tin Can API",
"mbox": "mailto:user@example.com"
},
"verb": {
"id": "http://example.com/xapi/verbs#sent-a-statement",
"display": {
"en-US": "sent"
}
},
"object": {
"id": "http://example.com/xapi/activity/simplestatement",
"definition": {
"name": {
"en-US": "simple statement"
},
"description": {
"en-US": "A simple Experience API statement. Note that the LRS does not need to have any prior information about the Actor (learner), the verb, or the Activity/object."
}
}
}
},
{
"id": "7ccd3322-e1a5-411a-a67d-6a735c76f119",
"timestamp": "2015-12-18T12:17:00+00:00",
"actor": {
"objectType": "Agent",
"name": "Example Learner",
"mbox": "mailto:example.learner@adlnet.gov"
},
"verb": {
"id": "http://adlnet.gov/expapi/verbs/failed",
"display": {
"en": "failed"
}
},
"object": {
"id": "http://example.adlnet.gov/xapi/example/simpleCBT",
"definition": {
"name": {
"en-US": "simple CBT course"
},
"description": {
"en-US": "A fictitious example CBT course."
}
}
},
"result": {
"score": {
"scaled": 0.95
},
"success": true,
"completion": true,
"duration": "PT1234S"
}
},
{
"id": "6690e6c9-3ef0-4ed3-8b37-7f3964730bee",
"actor": {
"name": "Team PB",
"mbox": "mailto:teampb@example.com",
"member": [
{
"name": "Andrew Downes",
"account": {
"homePage": "http://www.example.com",
"name": "13936749"
},
"objectType": "Agent"
},
{
"name": "Toby Nichols",
"openid": "http://toby.openid.example.org/",
"objectType": "Agent"
},
{
"name": "Ena Hills",
"mbox_sha1sum": "ebd31e95054c018b10727ccffd2ef2ec3a016ee9",
"objectType": "Agent"
}
],
"objectType": "Group"
},
"verb": {
"id": "https://profiles.adlnet.gov/xapi/c93aa18a-8b95-4793-b5ac-67cc63f1c311/verb/schlerb",
"display": {
"en": "schlerb",
"ru": "da, a schlerbski."
}
},
"result": {
"extensions": {
"http://example.com/profiles/meetings/resultextensions/minuteslocation": "X:meetingsminutesexamplemeeting.one"
},
"success": true,
"completion": true,
"response": "We agreed on some example actions.",
"duration": "PT1H0M0S"
},
"context": {
"registration": "ec531277-b57b-4c15-8d91-d292c5b2b8f7",
"contextActivities": {
"parent": [
{
"id": "http://www.example.com/meetings/series/267",
"objectType": "Activity"
}
],
"category": [
{
"id": "http://www.example.com/meetings/categories/teammeeting",
"objectType": "Activity",
"definition": {
"name": {
"en": "team meeting"
},
"description": {
"en": "A category of meeting used for regular team meetings."
},
"type": "http://example.com/expapi/activities/meetingcategory"
}
}
],
"other": [
{
"id": "http://www.example.com/meetings/occurances/34257",
"objectType": "Activity"
},
{
"id": "http://www.example.com/meetings/occurances/3425567",
"objectType": "Activity"
}
]
},
"instructor": {
"name": "Andrew Downes",
"account": {
"homePage": "http://www.example.com",
"name": "13936749"
},
"objectType": "Agent"
},
"team": {
"name": "Team PB",
"mbox": "mailto:teampb@example.com",
"objectType": "Group"
},
"platform": "Example virtual meeting software",
"language": "tlh",
"statement": {
"objectType": "StatementRef",
"id": "6690e6c9-3ef0-4ed3-8b37-7f3964730bee"
}
},
"timestamp": "2013-05-18T05:32:34.804+00:00",
"stored": "2013-05-18T05:32:34.804+00:00",
"authority": {
"account": {
"homePage": "http://cloud.scorm.com/",
"name": "anonymous"
},
"objectType": "Agent"
},
"version": "1.0.0",
"object": {
"id": "http://www.example.com/meetings/occurances/34534",
"definition": {
"extensions": {
"http://example.com/profiles/meetings/activitydefinitionextensions/room": {
"name": "Kilby",
"id": "http://example.com/rooms/342"
}
},
"name": {
"en-GB": "example meeting",
"en-US": "example meeting"
},
"description": {
"en-GB": "An example meeting that happened on a specific occasion with certain people present.",
"en-US": "An example meeting that happened on a specific occasion with certain people present."
},
"type": "http://adlnet.gov/expapi/activities/meeting",
"moreInfo": "http://virtualmeeting.example.com/345256"
},
"objectType": "Activity"
}
},
{
"id": "fd41c918-b88b-4b20-a0a5-a4c32391aaa0",
"timestamp": "2015-11-18T12:17:00+00:00",
"actor": {
"objectType": "Agent",
"name": "Project Tin Can API",
"mbox": "mailto:user@example.com"
},
"verb": {
"id": "http://example.com/xapi/verbs#sent-a-statement1",
"display": {
"en-US": "sent1"
}
},
"object": {
"id": "http://www.example.com/meetings/occurances/34534/1",
"definition": {
"description": {
"en-US": "Does the xAPI include the concept of statements?"
},
"type": "http://adlnet.gov/expapi/activities/cmi.interaction",
"interactionType": "true-false",
"correctResponsesPattern": [
"true"
]
},
"objectType": "Activity"
}
},
{
"id": "fd41c918-b88b-4b20-a0a5-a4c32391aaa0",
"timestamp": "2015-11-18T12:17:00+00:00",
"actor": {
"objectType": "Agent",
"name": "Project Tin Can API",
"mbox": "mailto:user@example.com"
},
"verb": {
"id": "http://example.com/xapi/verbs#sent-a-statement2",
"display": {
"en-US": "sent2"
}
},
"object": {
"id": "http://www.example.com/meetings/occurances/34534/2",
"definition": {
"description": {
"en-US": "Which of these prototypes are available at the beta site?"
},
"type": "http://adlnet.gov/expapi/activities/cmi.interaction",
"interactionType": "choice",
"correctResponsesPattern": [
"golf[,]tetris"
],
"choices": [
{
"id": "golf",
"description": {
"en-US": "Golf Example"
}
},
{
"id": "facebook",
"description": {
"en-US": "Facebook App"
}
},
{
"id": "tetris",
"description": {
"en-US": "Tetris Example"
}
},
{
"id": "scrabble",
"description": {
"en-US": "Scrabble Example"
}
}
]
},
"objectType": "Activity"
}
},
{
"id": "fd41c918-b88b-4b20-a0a5-a4c32391aaa0",
"timestamp": "2015-11-18T12:17:00+00:00",
"actor": {
"objectType": "Agent",
"name": "Project Tin Can API",
"mbox": "mailto:user@example.com"
},
"verb": {
"id": "http://example.com/xapi/verbs#sent-a-statement3",
"display": {
"en-US": "sent3"
}
},
"object": {
"id": "http://www.example.com/meetings/occurances/34534/3",
"definition": {
"description": {
"en-US": "Ben is often heard saying: "
},
"type": "http://adlnet.gov/expapi/activities/cmi.interaction",
"interactionType": "fill-in",
"correctResponsesPattern": [
"Bob's your uncle"
]
},
"objectType": "Activity"
}
},
{
"id": "fd41c918-b88b-4b20-a0a5-a4c32391aaa0",
"timestamp": "2015-11-18T12:17:00+00:00",
"actor": {
"objectType": "Agent",
"name": "Project Tin Can API",
"mbox": "mailto:user@example.com"
},
"verb": {
"id": "http://example.com/xapi/verbs#sent-a-statement4",
"display": {
"en-US": "sent4"
}
},
"object": {
"id": "http://www.example.com/meetings/occurances/34534/4",
"definition": {
"description": {
"en-US": "What is the purpose of the xAPI?"
},
"type": "http://adlnet.gov/expapi/activities/cmi.interaction",
"interactionType": "long-fill-in",
"correctResponsesPattern": [
"{case_matters=false}{lang=en}To store and provide access to learning experiences."
]
},
"objectType": "Activity"
}
},
{
"id": "fd41c918-b88b-4b20-a0a5-a4c32391aaa0",
"timestamp": "2015-11-18T12:17:00+00:00",
"actor": {
"objectType": "Agent",
"name": "Project Tin Can API",
"mbox": "mailto:user@example.com"
},
"verb": {
"id": "http://example.com/xapi/verbs#sent-a-statement5",
"display": {
"en-US": "sent5"
}
},
"object": {
"id": "http://www.example.com/meetings/occurances/34534/5",
"definition": {
"description": {
"en-US": "How awesome is Experience API?"
},
"type": "http://adlnet.gov/expapi/activities/cmi.interaction",
"interactionType": "likert",
"correctResponsesPattern": [
"likert_3"
],
"scale": [
{
"id": "likert_0",
"description": {
"en-US": "It's OK"
}
},
{
"id": "likert_1",
"description": {
"en-US": "It's Pretty Cool"
}
},
{
"id": "likert_2",
"description": {
"en-US": "It's Damn Cool"
}
},
{
"id": "likert_3",
"description": {
"en-US": "It's Gonna Change the World"
}
}
]
},
"objectType": "Activity"
}
},
{
"id": "fd41c918-b88b-4b20-a0a5-a4c32391aaa0",
"timestamp": "2015-11-18T12:17:00+00:00",
"actor": {
"objectType": "Agent",
"name": "Project Tin Can API",
"mbox": "mailto:user@example.com"
},
"verb": {
"id": "http://example.com/xapi/verbs#sent-a-statement6",
"display": {
"en-US": "sent6"
}
},
"object": {
"id": "http://www.example.com/meetings/occurances/34534/6",
"definition": {
"description": {
"en-US": "Match these people to their kickball team:"
},
"type": "http://adlnet.gov/expapi/activities/cmi.interaction",
"interactionType": "matching",
"correctResponsesPattern": [
"ben[.]3[,]chris[.]2[,]troy[.]4[,]freddie[.]1"
],
"source": [
{
"id": "ben",
"description": {
"en-US": "Ben"
}
},
{
"id": "chris",
"description": {
"en-US": "Chris"
}
},
{
"id": "troy",
"description": {
"en-US": "Troy"
}
},
{
"id": "freddie",
"description": {
"en-US": "Freddie"
}
}
],
"target": [
{
"id": "1",
"description": {
"en-US": "Swift Kick in the Grass"
}
},
{
"id": "2",
"description": {
"en-US": "We got Runs"
}
},
{
"id": "3",
"description": {
"en-US": "Duck"
}
},
{
"id": "4",
"description": {
"en-US": "Van Delay Industries"
}
}
]
},
"objectType": "Activity"
}
},
{
"id": "fd41c918-b88b-4b20-a0a5-a4c32391aaa0",
"timestamp": "2015-11-18T12:17:00+00:00",
"actor": {
"objectType": "Agent",
"name": "Project Tin Can API",
"mbox": "mailto:user@example.com"
},
"verb": {
"id": "http://example.com/xapi/verbs#sent-a-statement7",
"display": {
"en-US": "sent7"
}
},
"object": {
"id": "http://www.example.com/meetings/occurances/34534/7",
"definition": {
"description": {
"en-US": "This interaction measures performance over a day of RS sports:"
},
"type": "http://adlnet.gov/expapi/activities/cmi.interaction",
"interactionType": "performance",
"correctResponsesPattern": [
"pong[.]1:[,]dg[.]:10[,]lunch[.]"
],
"steps": [
{
"id": "pong",
"description": {
"en-US": "Net pong matches won"
}
},
{
"id": "dg",
"description": {
"en-US": "Strokes over par in disc golf at Liberty"
}
},
{
"id": "lunch",
"description": {
"en-US": "Lunch having been eaten"
}
}
]
},
"objectType": "Activity"
}
},
{
"id": "fd41c918-b88b-4b20-a0a5-a4c32391aaa0",
"timestamp": "2015-11-18T12:17:00+00:00",
"actor": {
"objectType": "Agent",
"name": "Project Tin Can API",
"mbox": "mailto:user@example.com"
},
"verb": {
"id": "http://example.com/xapi/verbs#sent-a-statement8",
"display": {
"en-US": "sent8"
}
},
"object": {
"id": "http://www.example.com/meetings/occurances/34534/8",
"definition": {
"description": {
"en-US": "Order players by their pong ladder position:"
},
"type": "http://adlnet.gov/expapi/activities/cmi.interaction",
"interactionType": "sequencing",
"correctResponsesPattern": [
"tim[,]mike[,]ells[,]ben"
],
"choices": [
{
"id": "tim",
"description": {
"en-US": "Tim"
}
},
{
"id": "ben",
"description": {
"en-US": "Ben"
}
},
{
"id": "ells",
"description": {
"en-US": "Ells"
}
},
{
"id": "mike",
"description": {
"en-US": "Mike"
}
}
]
},
"objectType": "Activity"
}
},
{
"id": "fd41c918-b88b-4b20-a0a5-a4c32391aaa0",
"timestamp": "2015-11-18T12:17:00+00:00",
"actor": {
"objectType": "Agent",
"name": "Project Tin Can API",
"mbox": "mailto:user@example.com"
},
"verb": {
"id": "http://example.com/xapi/verbs#sent-a-statement9",
"display": {
"en-US": "sent9"
}
},
"object": {
"id": "http://www.example.com/meetings/occurances/34534/",
"definition": {
"description": {
"en-US": "How many jokes is Chris the butt of each day?"
},
"type": "http://adlnet.gov/expapi/activities/cmi.interaction",
"interactionType": "numeric",
"correctResponsesPattern": [
"4[:]"
]
},
"objectType": "Activity"
}
}
]