5 ms·
But now it's a PITA properly handle and escape for any toolset that don't have good xml support. Imagine people starting to put <![CDATA[ ]] blocks into this.
by hrktb 12y ago
But now it's a PITA properly handle and escape for any toolset that don't have good xml support. Imagine people starting to put <![CDATA[ ]] blocks into this.
- iopq 12y agoI meant if I had designed it from the start. Then everything is a tag, no attributes, no quotes, equal signs, etc.
- johnlbevan2 12y agoHow about JsonML; i.e. XHTML but in JSON format to make it less verbose / further improve integration with javascript?
- yoklov 12y agoYou'd want to kill yourself pretty quickly. JSON is great as an interchange format, but there are many reasons editing it by hand is painful, lack of comments and lack of newlines in strings not being the least of them.
- mckamey 12y agoJsonML is pretty efficient when auto-generated from HTML source. I use it as an intermediate form for client side templates ( http://duelengine.org http://duelengine.org ) but I don't write it by hand. Its regularity makes it a perfect candidate for output from a parser/compiler.
- aubergene 12y agoThere's no syntactic difference between an attribute, an object and an array.
- iopq 12y agoyou can't nest tags into attributes