Added FormatJson::parse( $value, $options = 0 ) returning Status
authorYuri Astrakhan <yurik@wikimedia.org>
Mon, 15 Sep 2014 23:53:49 +0000 (19:53 -0400)
committerJforrester <jforrester@wikimedia.org>
Fri, 26 Sep 2014 18:55:09 +0000 (18:55 +0000)
commit9a380626bcf80f40fd4d5333b9db5ee88a2afa9c
tree29bed957a337278ad995f72148867b5aaf49327e
parentd785664ff326c545b3bf10e48b8b39f8b2fb5402
Added FormatJson::parse( $value, $options = 0 ) returning Status

* Returns Status object that will contain decoded value on success
* Adds i18n messages for all available PHP JSON errors

ATTN Translation team: please copy these messages:

gwtoolset-json-error-depth => json-error-depth
gwtoolset-json-error-state-mismatch => json-error-state-mismatch
gwtoolset-json-error-ctrl-char => json-error-ctrl-char
gwtoolset-json-error-syntax => json-error-syntax
gwtoolset-json-error-utf8 => json-error-utf8

Change-Id: I1c4f37aaabad369b75a1fbd223fad27ebcfe1c3c
includes/json/FormatJson.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/json/FormatJsonTest.php