zend-json icon indicating copy to clipboard operation
zend-json copied to clipboard

Json component from Zend Framework

Results 6 zend-json issues
Sort by recently updated
recently updated
newest added

Adding the new "forceObject" flag to be passed to the encoder in the options in the manner of `['forceObject' => true,]` . This then forces the encoder output to encode...

enhancement

Similar to https://github.com/zendframework/zf1/issues/678. ZF1 fix PR on https://github.com/zendframework/zf1/pull/680.

This issue has been moved from the `zendframework` repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html --- Original Issue: https://api.github.com/repos/zendframework/zendframework/issues/7544 User: @dreadnought78 Created On: 2015-05-23T22:04:16Z...

There is no way to modify json_encode() [encode options](https://github.com/zendframework/zend-json/blob/master/src/Json.php#L295-L299) except JSON_PRETTY_PRINT. For example we can't enable JSON_UNESCAPED_UNICODE or disable default options. Extending the base class Zend\Json\Json as workaround creates another...

I think it would be good to show to the developer a message when the json_encode fails in Zend\Json\Json::encode

enhancement
help wanted

there is a problem when json_encode get an incorrect character but i have a solution: in Json.php private static function encodeViaPhpBuiltIn($valueToEncode, $prettyPrint = false) { if (! function_exists('json_encode') || static::$useBuiltinEncoderDecoder...