Class JsonResponse
Response represents an HTTP response in JSON format.
Note that this class does not force the returned JSON content to be an object. It is however recommended that you do return an object as it protects yourself against XSSI and JSON-JavaScript Hijacking.
- Symfony\Component\HttpFoundation\Response
-
Symfony\Component\HttpFoundation\JsonResponse
Namespace: Symfony\Component\HttpFoundation
Author: Igor Wiedler igor@wiedler.ch
See: https://www.owasp.org/index.php/OWASP_AJAX_Security_Guidelines#Always_return_JSON_with_an_Object_on_the_outside
Located at JsonResponse.php
Author: Igor Wiedler igor@wiedler.ch
See: https://www.owasp.org/index.php/OWASP_AJAX_Security_Guidelines#Always_return_JSON_with_an_Object_on_the_outside
Located at JsonResponse.php
public
|
|
public static
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
protected
|
protected
|
$data
|
|
protected
|
$callback
|
|
protected
|
$encodingOptions
|
$charset,
$content,
$headers,
$statusCode,
$statusText,
$statusTexts,
$version
|