Skip to content

Instantly share code, notes, and snippets.

@kmdarshan
Created September 23, 2019 07:05
Show Gist options
  • Save kmdarshan/cfa6a940268f7091faf886ed63b3b559 to your computer and use it in GitHub Desktop.
Save kmdarshan/cfa6a940268f7091faf886ed63b3b559 to your computer and use it in GitHub Desktop.
sample json
{
"paragraphs": [{
"id": "p0",
"text": "aaa"
},
{
"id": "p1",
"text": "bbb"
},
{
"id": "p2",
"text": "ccc"
},
{
"id": "p3",
"text": "ddd"
},
{
"id": "p4",
"text": "eee"
},
{
"id": "p5",
"text": "fff"
}
],
"sections": [{
"id": "s0",
"startIndex": 0
},
{
"id": "s1",
"startIndex": 2
},
{
"id": "s2",
"startIndex": 4
}
],
"deltas": [{
"type": "updateParagraph",
"paragraphIndex": 0,
"paragraph": {
"text": "aaaAAA"
}
},
{
"type": "addParagraph",
"paragraphIndex": 1,
"paragraph": {
"text": "new"
}
},
{
"type": "deleteParagraph",
"paragraphIndex": 5
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment