{
"ops": [
{ "insert": "Gandalf", "attributes": { "bold": true } },
{ "insert": " the " },
{ "insert": "Grey", "attributes": { "color": "#cccccc" } }
]
}
{
"blocks": [
{
"data": {},
"depth": 0,
"entityRanges": [],
"inlineStyleRanges": [],
"key": "f911q",
"text": "Hello from DraftJS!",
"type": "unstyled"
},
...
]
}
"nodes": {
"doc": { content: "block+" },
"paragraph": { "group": "block", "content": "text*", "marks": "_" },
"heading": { "group": "block", "content": "text*", "marks": "" },
"text": { "inline": true }
}
"children": [
{
"type": "paragraph",
"children": [
{
"text": "This text is bold.",
"bold": true,
},
],
},
...
]