{"html_url": "https://github.com/simonw/datasette/issues/122#issuecomment-378279612", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/122", "id": 378279612, "node_id": "MDEyOklzc3VlQ29tbWVudDM3ODI3OTYxMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2018-04-03T14:55:54Z", "updated_at": "2018-04-03T14:55:54Z", "author_association": "OWNER", "body": "The new documentation for the `_shape=` parameter is now live at http://datasette.readthedocs.io/en/latest/json_api.html", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 275092453, "label": "Redesign JSON output, ditch jsono, offer variants controlled by parameter instead"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/122#issuecomment-345552358", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/122", "id": 345552358, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NTU1MjM1OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-19T21:45:38Z", "updated_at": "2017-12-05T19:09:52Z", "author_association": "OWNER", "body": "For the overall shape of the rows:\r\n\r\n`?_shape=lists` (default), `?_shape=objects`, `?_shape=object` (primary key as object keys)\r\n\r\nFor getting back extra keys:\r\n\r\n`?_extras=schema,query,timing`\r\n\r\nFor expanding columns:\r\n\r\n`?_expand_all=1`\r\n\r\nOr `?_expand=qSpecies&_expand=qCaretaker`\r\n\r\nThe template view will only be allowed to work with data it can request using extra options.\r\n\r\nThat leaves one sighted nasty edge-case: the default view will expand all columns, but the `.json` view of it won't?\r\n\r\nI think that's OK. The default view won't include the extras used by the template to render the page either.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 275092453, "label": "Redesign JSON output, ditch jsono, offer variants controlled by parameter instead"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/122#issuecomment-349408214", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/122", "id": 349408214, "node_id": "MDEyOklzc3VlQ29tbWVudDM0OTQwODIxNA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-12-05T19:08:04Z", "updated_at": "2017-12-05T19:08:04Z", "author_association": "OWNER", "body": "I think `.json` should continue to return rows as list-of-lists - it's a nice default because it produces a smaller overall JSON file. Encouraging people to specify an alternative shape to get the current `.jsono` format feels appropriate.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 275092453, "label": "Redesign JSON output, ditch jsono, offer variants controlled by parameter instead"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/122#issuecomment-345552500", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/122", "id": 345552500, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NTU1MjUwMA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-19T21:47:27Z", "updated_at": "2017-11-19T21:47:27Z", "author_association": "OWNER", "body": "To start with, I could just ditch the .jsono in favour of the new _shape argument.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 275092453, "label": "Redesign JSON output, ditch jsono, offer variants controlled by parameter instead"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/122#issuecomment-345552440", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/122", "id": 345552440, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NTU1MjQ0MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-19T21:46:43Z", "updated_at": "2017-11-19T21:46:43Z", "author_association": "OWNER", "body": "This calls for refactoring the code so the table view, the row view and the custom SQL view share as much logic as possible.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 275092453, "label": "Redesign JSON output, ditch jsono, offer variants controlled by parameter instead"}, "performed_via_github_app": null}