Thenbsp\Wechat\Bridge\Serializer::jsonDecode PHP Method

jsonDecode() public static method

json decode
public static jsonDecode ( $data, array $context = [] )
$context array
    public static function jsonDecode($data, array $context = array())
    {
        $defaults = array('json_decode_associative' => true, 'json_decode_recursion_depth' => 512, 'json_decode_options' => 0);
        return (new JsonEncoder())->decode($data, 'json', array_replace($defaults, $context));
    }