return json from sql mapper