Function wc_pos_json_encode
Simple wrapper for json_encode
Use JSON_FORCE_OBJECT for PHP 5.3 or higher with fallback for PHP less than 5.3.
WP 4.1 adds some wp_json_encode sanity checks which may be useful at some later stage.
Parameters summary
|
$data |
Return value summary
mixed
|
mixed |