convert your sql to json format result through presto query
This project allows you to have easy access to your different datasources like mysql,hive.
For example,we have presto catalog mysql,schema test and table Persons:
we pass sql[select * from mysql.test.Persons limit 10] and get the result:
[{“address”:”305 - 14th Ave. S. Suite 3B”,”city”:”Seattle”,”firstname”:”Clover”,”lastname”:”White”,”personid”:1},
{“address”:”Keskuskatu 45”,”city”:”Helsinki”,”firstname”:”Kala”,”lastname”:”Wilman”,”personid”:2}]