This synatx is called JsonML and I'm maintaining a stable and highly usable implementation: http://adriansieber.com/shaven
back
1 comments
Cool implementation. What is JSON about it though? What made you decide to pass children before props?
> What is JSON about it though?
"JSON" originally stood for "JavaScript Object Notation" - the restrictions on double-quotes and unquoted keys are arbitrary extras on top of that concept, but otherwise JSONML is, technically, another JavaScript Object Notatation for Javascript that is also a Markup Language.
Admittedly, the use of the term JSON these days implies that your syntax will be parsable by a JSON parser, which JSONML might not be.