{"ok": true, "database": "docs", "table": "sections", "rows": [{"id": "binary_data:binary-json-format", "page": "binary_data", "ref": "binary-json-format", "title": "Binary values in JSON", "content": "Binary data is represented in  .json  exports using Base64 encoding. Datasette uses this representation for every  BLOB  value, including binary values that could also be decoded as UTF-8 text. \n             https://latest.datasette.io/fixtures/binary_data.json?_shape=array \n             [\n    {\n        \"rowid\": 1,\n        \"data\": {\n            \"$base64\": true,\n            \"encoded\": \"FRwCx60F/g==\"\n        }\n    },\n    {\n        \"rowid\": 2,\n        \"data\": {\n            \"$base64\": true,\n            \"encoded\": \"FRwDx60F/g==\"\n        }\n    },\n    {\n        \"rowid\": 3,\n        \"data\": null\n    }\n] \n             The same format can be used with the  JSON write API .\n                If a column value in a  row ,  rows  or  update  object is a JSON object with exactly  \"$base64\"  set to  true  and an  \"encoded\"  string, Datasette will decode that Base64 string and store the resulting bytes: \n             {\n    \"data\": {\n        \"$base64\": true,\n        \"encoded\": \"FRwCx60F/g==\"\n    }\n} \n             This works for inserts, upserts and updates. It also works when creating a table from example  row  or  rows  data: Datasette decodes the value before inferring the schema, allowing that column to be created as a  BLOB  column. \n             To store a JSON object with that exact shape literally, wrap it in a  \"$raw\"  object: \n             {\n    \"data\": {\n        \"$raw\": {\n            \"$base64\": true,\n            \"encoded\": \"FRwCx60F/g==\"\n        }\n    }\n} \n             \"$raw\"  unwraps exactly one layer. To store a literal  \"$raw\"  object containing a Base64 object, wrap it again: \n             {\n    \"data\": {\n        \"$raw\": {\n            \"$raw\": {\n                \"$base64\": true,\n                \"encoded\": \"FRwCx60F/g==\"\n            }\n        }\n    }\n}", "breadcrumbs": "[\"Binary data\"]", "references": "[{\"href\": \"https://latest.datasette.io/fixtures/binary_data.json?_shape=array\", \"label\": \"https://latest.datasette.io/fixtures/binary_data.json?_shape=array\"}]"}], "primary_keys": ["id"], "primary_key_values": ["binary_data:binary-json-format"], "query_ms": 3.2189020421355963, "truncated": false}