Created
September 23, 2019 07:05
-
-
Save kmdarshan/cfa6a940268f7091faf886ed63b3b559 to your computer and use it in GitHub Desktop.
sample json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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