zendframework/zf2 — pull request #1837 by padraic (2012-07-10 21:52:28+00:00)
Title: Zend\Json Improvements

Changes:

1. Enables a number of optional json_encode() flags available since PHP 5.3 which additionally escape certain HTML special characters (increases security on JSON included in HTML script tags).
2. Ported the additional escaping over to the PHP encoder
3. PHP decoder unicode unescapes before parsing JSON. This means that unicode escaped special characters like newlines, quotes, slashes, etc. have their ASCII literals injected into JSON strings in an unescaped form leading to parsing errors and potentially other problems.