Overview

Content is represented on GitBook in JSON as a semantic document. This section will describe this format and how to manipulate it.

{
"object": "document",
"nodes": [
{
"key": "1",
"object": "block",
"type": "paragraph",
"nodes": [
{
"object": "text",
"key": "2",
"ranges": [
{
"text": "Welcome to"
},
{
"text": "GitBook!",
"marks": [
{ "type": "bold" }
]
}
]
}
]
},
{
"key": "3",
"object": "block",
"type": "image",
"isVoid": true,
"data": {
"assetID": "xuizcyi34"
}
}
]
}