return response()->json($array, 202,
[
'Content-Type' => 'application/json',
'Charset' => 'utf-8'
], JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
}
$json = json_decode($json, true);
print($json['username']);
return response()->json([
'name' => 'Abigail',
'state' => 'CA',
]);
return response()->json($array);
Route::get('/status', function () {
return response(["success" => true])->header('Content-Type', 'application/json');
});