JsonSql
JsonSql copied to clipboard
SQL micro-dialect implementation for querying JSON objects. Written purely in Scala.
Sometimes receiving a list of Nones/Somes can be useful and sometimes the user will only be interested in Somes.
Apart from returning results as a list of JValues, I think it could be generalized to a solution that would return a list of instances of a specific case class...
Speed should be more or less ok, though I’m curious about how well will it perform memory wise while parsing json.
I ommited that functionality intentionally, however it might be useful in some cases. Usually the json will be autogenerated, but the library user may want to create a unit test...
It should be possible to pass a generic argument into the api - a case class type for representing the data selected.