4 ms·
I've come up with a new notation Mark (http://marknotation.org/ http://marknotation.org/), to address some of issues faced with JSON and XML. It keeps the simp
by henryluo 8y ago
I've come up with a new notation Mark (http://marknotation.org/ http://marknotation.org/), to address some of issues faced with JSON and XML.
It keeps the simplicity of JSON, and is able to support mixed content at the same time.
At the moment, it leaves out namespace to the application.
Your sample in Mark would look like:
{html
{head
{concept tag:computer-game guid:"c1a3e0cb-5872-4e5a-8dce-b8afc00772db"}
{concept attribute:year-published guid:"ba073188-8bd6-47a7-9065-eb55c4a8b908"}
}
{body
{computer-game year-published:1993 "Doom"}
}
}
- gambler 8y agoLooks pretty good. Not sure how I feel about including JSON as type of embedded content, though. I've used something vaguely similar in the distant past, but it was strictly internal for my hobby projects and mostly resembled lisp with square brackets. It was way more primitive, but the parser (lexer, really) fit into two blocks of code. All the fancy stuff was done within DOM.