Remove Single Quotes from json_encode data PHP

PHP
 $thecart = str_replace("'", "", json_encode($woocommerce->cart->get_cart(), JSON_HEX_APOS));

Leave a Comment