Match question

Schema

Examples

Basic

{
  "id": "1",
  "type": "application/x.match+json",
  "content": "Question ?",
  "random": false,
  "penalty": 0,
  "firstSet": [
    {
      "id": "2",
      "type": "text/plain",
      "data": "Item A"
    },
    {
      "id": "3",
      "type": "text/plain",
      "data": "Item B"
    }
  ],
  "secondSet": [
    {
      "id": "4",
      "type": "text/plain",
      "data": "Item C"
    },
    {
      "id": "5",
      "type": "text/plain",
      "data": "Item D"
    }
  ]
}

Solutions

{
  "id": "1",
  "type": "application/x.match+json",
  "content": "Question ?",
  "random": false,
  "penalty": 0,
  "firstSet": [
    {
      "id": "2",
      "type": "text/plain",
      "data": "Item A"
    },
    {
      "id": "3",
      "type": "text/plain",
      "data": "Item B"
    }
  ],
  "secondSet": [
    {
      "id": "4",
      "type": "text/plain",
      "data": "Item C"
    },
    {
      "id": "5",
      "type": "text/plain",
      "data": "Item D"
    }
  ],
  "solutions": [
    {
      "firstId": "2",
      "secondId": "5",
      "score": 2,
      "feedback": "Lorem ipsum"
    },
    {
      "firstId": "3",
      "secondId": "4",
      "score": 0.5
    }
  ]
}

With solution feedback

{
  "id": "1",
  "type": "application/x.match+json",
  "content": "Question ?",
  "random": false,
  "penalty": 0,
  "firstSet": [
    {
      "id": "2",
      "type": "text/plain",
      "data": "Item A"
    },
    {
      "id": "3",
      "type": "text/plain",
      "data": "Item B"
    }
  ],
  "secondSet": [
    {
      "id": "4",
      "type": "text/plain",
      "data": "Item C"
    },
    {
      "id": "5",
      "type": "text/plain",
      "data": "Item D"
    }
  ],
  "solutions": [
    {
      "firstId": "2",
      "secondId": "5",
      "score": 2,
      "feedback": "Lorem ipsum"
    },
    {
      "firstId": "3",
      "secondId": "4",
      "score": 0.5,
      "feedback": "Dolor sit amet"
    }
  ]
}

Text and images

{
  "id": "1",
  "type": "application/x.match+json",
  "random": false,
  "penalty": 0,
  "meta": {
    "authors": [
      {
        "name": "John Doe",
        "status": "Tutor"
      },
      {
        "name": "Jane Doe",
        "email": "jane@mail.com",
        "status": "Professor"
      }
    ],
    "license": "CC",
    "created": "2014-06-23"
  },
  "content": "Question ?",
  "objects": [
    {
      "id": "1",
      "type": "image/png",
      "url": "http://domain.com/image.png",
      "meta": {
        "title": "Lorem sample"
      }
    }
  ],
  "resources": [
    {
      "id": "2",
      "type": "application/pdf",
      "url": "http://domain.com/syllabus.txt"
    }
  ],
  "firstSet": [
    {
      "id": "3",
      "type": "text/plain",
      "data": "Item A"
    },
    {
      "id": "4",
      "type": "text/plain",
      "data": "Item B"
    }
  ],
  "secondSet": [
    {
      "id": "5",
      "type": "image/png",
      "url": "http://domain.com/image-c.png"
    },
    {
      "id": "6",
      "type": "image/png",
      "url": "http://domain.com/image-d.png"
    }
  ],
  "solutions": [
    {
      "firstId": "3",
      "secondId": "6",
      "score": 1.5
    },
    {
      "firstId": "4",
      "secondId": "5",
      "score": 1
    }
  ],
  "feedback": "Lorem ipsum dolor sit amet."
}