Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php json_decode without quotes

function json_decode_add_quotes_to_keys($s) {                      
    $s = preg_replace('/(w+):/i', '"1":', $s);                   
    return json_decode($s);                                        
}  
 
PREVIOUS NEXT
Tagged: #php #quotes
ADD COMMENT
Topic
Name
9+5 =