Hacker News new | ask | show | jobs
by epoberezkin 3687 days ago
That's good to know that it was done before with JSON, I've only seen XML attempts. It probably shows that there is a need, doesn't it?

Syntax is a matter of opinion, JSONScript seems more concise than REL in the link.

2 comments

>That's good to know that it was done before with JSON, I've only seen XML attempts.

Both approaches are similarly flawed, but XML would actually work much better for what you're trying to do with JSON - and much more readable.

I've seen several XML based scripting implementations. This one for example: http://www.drdobbs.com/web-development/jelly-an-xml-based-sc...

I may have got used to the syntax I came up with, but all XML based scripts seem more verbose and less readable. I guess, each to its own...

Not necessarily. It just shows people are willing to experiment with JSON, even though it might end up badly.