Answers for "php json_decode without quotes"

PHP
0

php json_decode without quotes

function json_decode_add_quotes_to_keys($s) {                      
    $s = preg_replace('/(\w+):/i', '"\1":', $s);                   
    return json_decode($s);                                        
}
Posted by: Guest on August-21-2020

Browse Popular Code Answers by Language