2 ms·
Exceptions are welcome :) But why are you doing this? Just curious. Actually, in my current project we use JSON to encode parse trees. It's no s-expressions, b
by gruseom 18y ago
Exceptions are welcome :) But why are you doing this? Just curious.
Actually, in my current project we use JSON to encode parse trees. It's no s-expressions, but it works pretty well.
- fizx 18y agoIts an embedded language for xml/html data extraction/scraping. It's inspired by MQL ( http://www.freebase.com/tools/queryeditor/ http://www.freebase.com/tools/queryeditor/ , look for the examples link towards the bottom), which should give you an idea of how json can be used to represent structure. The Ruby and Python bindings let you choose between JSON and the native hash/array or list/dictionary structures. You can be idiomatic and portable at the same time.
- 11ren 18y agoThat's very cool. JSON seems a natural conceptual match for querying data like that. I think a different concrete syntax might be more readable for me - but could just be my unfamiliarity. And JSON is an instant, no-work solution, so there's no downside. It would be good to see your project.