Skip to content

Instantly share code, notes, and snippets.

@northamerican
Last active July 24, 2017 23:56
Show Gist options
  • Save northamerican/6f3ac39c9424b5b211db to your computer and use it in GitHub Desktop.
Save northamerican/6f3ac39c9424b5b211db to your computer and use it in GitHub Desktop.
minimalist html in json
[{
"table": [{
"class": ["class-for-table"]
}, {
"a": [{
"rel": "something",
"href": "a-url-here"
}, [
"this is a text node"
]]
}, {
"caption": [
"this is a text node"
]
}, {
"input": [{
"type": "checkbox",
"disabled": "disabled"
}]
}, {
"this is a comment": null
}]
}]
[{
"table": [{
"class": ["class-for-table"]
}, {
"a": [{
"rel": "something",
"href": "a-url-here"
}, {
"": "this is a text node"
}]
}, {
"caption": [{
"": "this is a text node"
}]
}, {
"input": [{
"type": "checkbox",
"disabled": "disabled"
}]
}, {
"!--": "this is a comment"
}]
}]
@northamerican
Copy link
Author

consider this an attempt to devise a more human processable and nearly writable version of
https://github.com/andrejewski/himalaya
and
https://developer.mozilla.org/en-US/docs/JXON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment