結果 : create json object from sql query