protected function json_encode_options($options)
    {
        $data = $this->prepare_options($options);

        $json = json_encode($data['options']);

        $json = str_replace($data['toReplace'], $data['original'], $json);

        return $json;
    }
protected function json_encode_options($options)
    {
        $data = $this->prepare_options($options);

        $json = json_encode($data['options']);

        $json = str_replace($data['toReplace'], $data['original'], $json);

        return $json;
    }
protected function json_encode_options ( $ options ) { $ data = $ this -> prepare_options ( $ options ) ; $ json = json_encode ( $ data [ 'options' ] ) ; $ json = str_replace ( $ data [ 'toReplace' ] , $ data [ 'original' ] , $ json ) ; return $ json ; }
Encode options to Json.

@param array $options

@return $json
Encode options to Json .