JsonResponse
json(string|array $data = array(), int $status = 200, array $headers = array(), int $options)
Return a new JSON response from the application. Parameters string|array $data int $status array $headers int $options Return Value JsonResponse