Used strict comparision.

main
Jakub Zalas 13 years ago
parent c680ec7e51
commit dcdb761e17

@ -130,7 +130,7 @@ class JsonFile
$char = substr($json, $i, 1);
// Are we inside a quoted string?
if ('"' === $char && ('\\' !== $prevChar || '\\\\' == substr($json, $i-2, 2))) {
if ('"' === $char && ('\\' !== $prevChar || '\\\\' === substr($json, $i-2, 2))) {
$outOfQuotes = !$outOfQuotes;
} elseif (':' === $char && $outOfQuotes) {
// Add a space after the : character

Loading…
Cancel
Save