Explorar o código

[jsonUtils] fixed Json file not properly formatted in case a string contains a single double quote (Issue #39)

Exilon %!s(int64=5) %!d(string=hai) anos
pai
achega
eb1b74b7ee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Quick.JSON.Utils.pas

+ 1 - 1
Quick.JSON.Utils.pas

@@ -121,8 +121,8 @@ begin
           end;
       end;
     end;
-    isEscape := (c = '\') and not isEscape;
     if not isEscape and (c = '"') then isIntoString := not isIntoString;
+    isEscape := (c = '\') and not isEscape;
   end;
 end;