added route for returning json