3 ms·
"Now why do this? Because if your way of interacting with the database is encoded in a consistent JSON format, then the server can analyze it easier to decide w
by philf 16y ago
"Now why do this? Because if your way of interacting with the database is encoded in a consistent JSON format, then the server can analyze it easier to decide what to do."
It could also parse the SQL query.
- thristian 16y agoTo be fair, JSON is much, much simpler to parse than SQL.
- keefe 16y agoI've written a SPARQL query parser, which is somewhat similar to SQL. Parsing the string into your internal memory representation is not the hard part of writing a query engine. It's really not difficult to transform SQL into the JSON/SQL shown in the article.