Also fix JSON encoding when the result contains objects not arrays

This commit is contained in:
Kijin Sung 2016-02-27 14:27:46 +09:00
parent 379bed000d
commit 705ad34c49

View file

@ -30,6 +30,10 @@ class JSONDisplayHandler
{
foreach ($array as $key => &$value)
{
if (is_object($value))
{
$value = get_object_vars($value);
}
if (is_array($value))
{
self::_convertCompat($value, $compat_type);