Update packages controller to return json always