Hacker News new | ask | show | jobs
by kuroikyu 2921 days ago
> JSON + Variables, Conditionals, Arithmetic, Functions, Imports, Error Propagation

Is this going full circle then? JS -> JSON -> JS.

More seriously and like someone already said, to many brackets and quotes for rapid prototyping.

2 comments

I think the use cases are more to generate JSON file, for example, to generate config file based on a template.
Yes I am confused by this as well. It's a templating language for javascript objects? Isn't javascript a framework/language to create javascript objects? Other then interface with a few APIs (in browser or node.js) it can't do anything else.
If you’re using Javascript or have an embedded JavaScript runtime sure use that.

The 1st party bindings are for C, Go and Python; so it a cross-language JSON DSL. And making it a strict DSL has significant advantages.