json_encode() returns false
This is the first time i ever face, that var_dumping json_encode of an array resulting boolean value. I have an array that was resulted from unserialization. I var_dumped it and made sure that it is a valid array. The result is like below. This is just a piece, not entire debug view. array (size=3) 'id' => string 'asco-power-technologies-l-p' (length=27) 'name' => string 'asco-power-technologies-l-p' (length=27) 'children' => array (size=2) 0 => array (size=4) 'id' => string 'apl-logistics' (length=13) 'name' => string 'APL LOGISTICS' (length=13) 'data' => array (size=2) 'band' => string 'ASCO