Encode <, >, ', &, and " for RFC4627-compliant JSON, which may also be embedded into HTML.

Those who RFC compliant or not than good?
As shown in the code this 
https://github.com/symfony/HttpFoundation/blob/master/JsonResponse.php#L92