Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
JSON validity exercises
### Sample JSON
#### Exhibit A
{"search":{
"field": null,
"hits": 1901,
"sort_order": null,
"do_facets": true,
"focus_item": null,
"query": "slave"
"type": "search",
"sort_by": null}
#### Exhibit B
{ "call_number": "Illus. in E449.L685 1847 [General Collections]",
"medium_brief": "1 print.",
"source_modified": "2004-10-21 00:00:00",
"pk": "2004679626",
"created_published_date": "1847.",
"subjects": null
}
#### Exhibit C
{ title: "Slave trade. Slaves in bondage [1830]",
image: {
"alt": "item not digitized thumbnail",
"full": "http://www.loc.gov/pictures/static/images/item/500x500_notdigitized.png",
"square": "http://www.loc.gov/pictures/static/images/item/not_digitized_buttons75X75.png",
"thumb": "http://www.loc.gov/pictures/static/images/item/notdigitized_buttons140X120.png"
}
}
#### Exhibit D
{
{ "item": "http://www.loc.gov/pictures/item/2004679626/",
"resource": "http://www.loc.gov/pictures/item/2004679626/resource/"
},
{ "alt": "digitized item thumbnail",
"created": "2013-11-27 00:00:00",
"modified": "2013-11-27 00:00:00",
"collection": ["cph", "pp", "reconref"],
},
}
#### Exhibit E
{
"source_created": "2007-09-19 00:00:00",
"index": 6,
"medium": "1 print : wood engraving.",
"reproduction_number": "LC-DIG-ppmsca-15836 (digital file from original print)\nLC-USZ62-10295 (b&w film copy neg.)",
"links": {
"item": "http://www.loc.gov/pictures/item/2007684717/",
"resource": "http://www.loc.gov/pictures/item/2007684717/resource/"
},
"created": "2013-11-27 00:00:00",
"modified": "2013-11-27 00:00:00",
"collection": [
"cph",
"diof",
"pp"
],
"creator": null,
"call_number": "LOT 4422-1 [item] [P&P]",
"medium_brief": "1 print :",
"source_modified": "2007-09-20 00:00:00",
"pk": "2007684717",
"created_published_date": "1884.",
"subjects": [
"Slaves--1880-1890.",
"Slave trade--1880-1890.",
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.