response()->type('application/json'); header("Content-Type: application/json"); echo json_encode($json); exit(); }?>