Output is difficult to read
minusdavid opened this issue · 2 comments
minusdavid commented
With the example, this is the output I see using curl or wget:
{"received": "{\n \"@context\": \"http://iiif.io/api/presentation/2/context.json\", \n \"@id\": \"http://iiif.io/api/presentation/2.1/example/fixtures/1/manifest.json\", \n \"@type\": \"sc:Manifest\", \n
\"label\": \"Test 1 Manifest: Minimum Required Fields\", \n \"within\": \"http://iiif.io/api/presentation/2.1/example/fixtures/collection.json\", \n \"sequences\": [\n {\n \"@type\": \"sc:Sequence
\", \n \"canvases\": [\n {\n \"@id\": \"http://iiif.io/api/presentation/2.1/example/fixtures/canvas/1/c1.json\", \n \"@type\": \"sc:Canvas\", \n \"label\": \"Test 1 Can
vas: 1\", \n \"height\": 1800, \n \"width\": 1200, \n \"images\": [\n {\n \"@type\": \"oa:Annotation\", \n \"motivation\": \"sc:painting\", \n
\"resource\": {\n \"@id\": \"http://iiif.io/api/presentation/2.1/example/fixtures/resources/page1-full.png\", \n \"@type\": \"dctypes:Image\", \n \"h
eight\": 1800, \n \"width\": 1200\n }, \n \"on\": \"http://iiif.io/api/presentation/2.1/example/fixtures/canvas/1/c1.json\"\n }\n ]\n }\n
]\n }\n ]\n}", "error": "None", "okay": 1, "warnings": ["WARNING: Resource type 'sc:Manifest' should have 'description' set\n", "WARNING: Resource type 'oa:Annotation' should have '@id' set\n", "WARN
ING: Resource type 'dctypes:Image' should have 'format' set\n"]}
minusdavid commented
With my own manifest, I notice that "error" also looks like this:
"error": "u'value'"
minusdavid commented
It looks like the newlines are just being treated as part of the strings which makes them pretty useless.