PHP Regex add Quotes to Key

$json = preg_replace('/([{,])(\s*)([A-Za-z0-9_\-]+?)\s*:/','$1"$3":',$json);

http://stackoverflow.com/questions/4843746/regular-expression-to-add-double-quotes-around-keys-in-javascript