PHP-995: Improve JSON detection (remi@php.net)
Merge pull request #600 from bjori/PHP-995-json-detection

PHP-995: Improve JSON detection (remi@php.net)

* bjori/PHP-995-json-detection:
  PHP-995: Improve JSON detection (remi@php.net)