Used strict comparision.
parent
c680ec7e51
commit
dcdb761e17
|
@ -130,7 +130,7 @@ class JsonFile
|
||||||
$char = substr($json, $i, 1);
|
$char = substr($json, $i, 1);
|
||||||
|
|
||||||
// Are we inside a quoted string?
|
// Are we inside a quoted string?
|
||||||
if ('"' === $char && ('\\' !== $prevChar || '\\\\' == substr($json, $i-2, 2))) {
|
if ('"' === $char && ('\\' !== $prevChar || '\\\\' === substr($json, $i-2, 2))) {
|
||||||
$outOfQuotes = !$outOfQuotes;
|
$outOfQuotes = !$outOfQuotes;
|
||||||
} elseif (':' === $char && $outOfQuotes) {
|
} elseif (':' === $char && $outOfQuotes) {
|
||||||
// Add a space after the : character
|
// Add a space after the : character
|
||||||
|
|
Loading…
Reference in New Issue