Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Plugging my amazing JSON-like format! https://gitlab.com/rendaw/luxem

In case anyone doesn't click the link, its much simpler than JSON, leaves interpretation up to the reader, supports polymorphic data, and has some tweaks to make it nicer to edit by hand. I've used this in a bunch of personal projects and maps all the models I've come across perfectly. If you need more power in your format you're better off using Lua than YAML.

I have a Rust Serde implementation 90% complete I could finish up if anyone wants it.



Trailing commas are of course very sensible!

This doesn't seem simpler than JSON otherwise, though, e.g. type declarations and optional quotes.

Why is leaving interpretation up to the reader desirable? Shouldn't things always come out the same?

Asterisks are an unusual choice of comment syntax. What if your comment needs to contain an asterisk? Why not "//..." and/or "/* ... */", or "#..."?




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: