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

Is this just a data type, or did SQLite put in a JSON interpreter?



What do you mean by a JSON interpreter? I think SQLite already has a full implementation of JSON including tree walkers, and this internal format (that is externally just another BLOB) makes them more efficient.


Oh, sorry, I was thinking that someone had put a Javascript interpreter in the database itself. Fortunately, no.


Despite the name, the JSON format doesn't really have much to do with JavaScript.


Pretty sure SQLite comes with a JSON parser. JSON is a very simple format for which it is easy to write a parser for...


You mean a JSON parser? I don't think you can execute anything with json.


SQLite has had pretty decent support for JSON for a while now:

https://sqlite.org/json1.html


It's a BLOB with a binary representation of JSON.




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: