Skip to content

Instantly share code, notes, and snippets.

@moismailzai moismailzai/package.json

Last active Feb 14, 2017
Embed
What would you like to do?
Prototype for transporting HTML via JSON
{
"html": {
"body": {
"_attributes": {
"_class": [
"container",
"flex"
]
},
"_children": {
"div": {
"_attributes": {
"_class": [
"main-content"
]
},
"_children": {
"h1": {
"_attributes": {
"_class": [
"display"
],
"_id": [
"first-contact"
],
"_style": [
"color: red;",
"background: white;"
]
},
"_children": {
"_raw": [
"Hello World!"
]
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.