A library which gets query results as json format