Fix route to return json