Skip to content

Instantly share code, notes, and snippets.

@webignition
Created June 6, 2014 07:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save webignition/5dd3dc0ba87c807564c4 to your computer and use it in GitHub Desktop.
Example JSON response for a job task collection
[
{
"id": 1,
"url": "http:\/\/example.com\/",
"state": "completed",
"type": "HTML validation",
"time_period": {
"start_date_time": "2013-04-17T14:59:45+0100",
"end_date_time": "2013-04-17T14:59:47+0100"
},
"output": {
"output": "{\"messages\":[{\"lastLine\":59,\"lastColumn\":102,\"message\":\"An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.\",\"messageid\":\"html5\",\"explanation\":\" <p class=\\\"helpwanted\\\">\\n <a\\n href=\\\"feedback.html?uri=file%3A%2F%2F%2Ftmp%2F1cc8c491876c6be5ece84601d43434d9.html;errmsg_id=html5#errormsg\\\"\\n\\ttitle=\\\"Suggest improvements on this error message through our feedback channels\\\" \\n >&#x2709;<\\\/a>\\n <\\\/p>\\n\",\"type\":\"error\"},{\"lastLine\":105,\"lastColumn\":156,\"message\":\"An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.\",\"messageid\":\"html5\",\"explanation\":\" <p class=\\\"helpwanted\\\">\\n <a\\n href=\\\"feedback.html?uri=file%3A%2F%2F%2Ftmp%2F1cc8c491876c6be5ece84601d43434d9.html;errmsg_id=html5#errormsg\\\"\\n\\ttitle=\\\"Suggest improvements on this error message through our feedback channels\\\" \\n >&#x2709;<\\\/a>\\n <\\\/p>\\n\",\"type\":\"error\"},{\"lastLine\":114,\"lastColumn\":124,\"message\":\"An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.\",\"messageid\":\"html5\",\"explanation\":\" <p class=\\\"helpwanted\\\">\\n <a\\n href=\\\"feedback.html?uri=file%3A%2F%2F%2Ftmp%2F1cc8c491876c6be5ece84601d43434d9.html;errmsg_id=html5#errormsg\\\"\\n\\ttitle=\\\"Suggest improvements on this error message through our feedback channels\\\" \\n >&#x2709;<\\\/a>\\n <\\\/p>\\n\",\"type\":\"error\"}]}",
"content_type": "application\/json",
"error_count": 3,
"warning_count": 0
}
},
{
"id": 2,
"url": "http:\/\/example.com\/",
"state": "in-progress",
"worker": "hydrogen.worker.simplytestable.com",
"type": "CSS validation",
"time_period": {
"start_date_time": "2013-04-17T14:59:48+0100"
},
"remote_id": "2"
},
{
"id": 3,
"url": "http:\/\/example.com\/page-1\/",
"state": "in-progress",
"worker": "lithium.worker.simplytestable.com",
"type": "HTML validation",
"time_period": {
"start_date_time": "2013-04-17T14:59:48+0100"
},
"remote_id": "4"
},
{
"id": 4,
"url": "http:\/\/example.com\/page-1\/",
"state": "queued",
"worker": "",
"type": "CSS validation"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment