3 ms·
I think this is great. And on a tangent, a few months ago I was searching "everywhere" to find a somewhat standard rest api query format. There's odata, but tha
by ytjohn 5y ago
I think this is great. And on a tangent, a few months ago I was searching "everywhere" to find a somewhat standard rest api query format. There's odata, but that was way too heavy.
I don't know how popular jsonlogic itself really is, but it definitely seems like a good fit for queries.
https://jsonlogic.com/ https://jsonlogic.com/
- adamlouis 5y agoThanks! Yeah, jsonlogic does not seem THAT popular. A JSON-based solution that looks like an AST means you can skip query parsing & just do generation. I started this project with my own JSON Lisp DSL before going with jsonlogic. In either case, I like the idea of being able to swap out arbitrary storage layers - sqlite, postgres, mongo, etc. - while keeping the JSON api. Had not encountered odata - thanks for sharing!