includes/functions.php
changeset 1167 3c73e1b6d33f
parent 1159 a1cca4472a58
child 1183 15957df91ea4
--- a/includes/functions.php	Sun Dec 13 03:56:18 2009 -0500
+++ b/includes/functions.php	Thu Dec 17 04:26:21 2009 -0500
@@ -4790,7 +4790,7 @@
           '#/\*(.+)\*/\s*$#Us'
         ), '', $json);
     
-  $json = preg_replace('/([,\{\[])([\s]*?)([a-z0-9_]+)([\s]*?):/', '\\1\\2"\\3" :', $json);
+  $json = preg_replace('/([,\{\[])(?:[\r\n]+)([\s]*?)([a-z0-9_]+)([\s]*?):/', '\\1\\2"\\3" :', $json);
   
   return $json;
 }