Removing quotation marks from JSON encoded string
javascript, json, php, string
Solution
$input = $json_var;
$input = str_replace( '"', '', $input ); // strip em
$input = '"' . $input . '"'; // wrap back around
Problem
I currently have a JSON encoded string generated by inputting values from a array, it is as follows - ``` "["{value: 97049}","{value: 84866}","{value: 39402}","{value: 30250}","{value: 33363}"]" ``` I need to convert it to the following format : ``` "[{value: 97049},{value: 84866},{value: 39402},{value: 30250},{value: 33363}]" ``` Thanks.