Skip to content

Instantly share code, notes, and snippets.

@ajduke
Created April 11, 2015 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajduke/4aa49564dc2d204e1581 to your computer and use it in GitHub Desktop.
Save ajduke/4aa49564dc2d204e1581 to your computer and use it in GitHub Desktop.
JSON Gist
[
{
"raw": "This is some text to demonstrate how a recursive parser works it has ",
"data": "This is some text to demonstrate how a recursive parser works it has ",
"type": "text"
},
{
"raw": "b",
"data": "b",
"type": "tag",
"name": "b",
"children": [
{
"raw": "bold text",
"data": "bold text",
"type": "text"
}
]
},
{
"raw": " and some ",
"data": " and some ",
"type": "text"
},
{
"raw": "i",
"data": "i",
"type": "tag",
"name": "i",
"children": [
{
"raw": "italic text",
"data": "italic text",
"type": "text"
}
]
},
{
"raw": " and in some cases ",
"data": " and in some cases ",
"type": "text"
},
{
"raw": "b",
"data": "b",
"type": "tag",
"name": "b",
"children": [
{
"raw": "i",
"data": "i",
"type": "tag",
"name": "i",
"children": [
{
"raw": "u",
"data": "u",
"type": "tag",
"name": "u",
"children": [
{
"raw": "text that is bold italic and underlined",
"data": "text that is bold italic and underlined",
"type": "text"
}
]
}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment