Created
January 15, 2014 21:42
-
-
Save wcaleb/8445284 to your computer and use it in GitHub Desktop.
JSON validity exercises
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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