add route to get json output