Browse Source

* Removed erroneously committed compacting code

git-svn-id: trunk@23669 -
michael 12 years ago
parent
commit
b32e74c94c
1 changed files with 4 additions and 4 deletions
  1. 4 4
      packages/fcl-json/src/fpjson.pp

+ 4 - 4
packages/fcl-json/src/fpjson.pp

@@ -1311,7 +1311,7 @@ begin
     begin
     begin
     Result:=Result+Items[i].AsJSON;
     Result:=Result+Items[i].AsJSON;
     If (I<Count-1) then
     If (I<Count-1) then
-      Result:=Result+','
+      Result:=Result+', '
     end;
     end;
   Result:=Result+']';
   Result:=Result+']';
 end;
 end;
@@ -1790,11 +1790,11 @@ begin
   For I:=0 to Count-1 do
   For I:=0 to Count-1 do
     begin
     begin
     If (Result<>'') then
     If (Result<>'') then
-      Result:=Result+',';
-    Result:=Result+'"'+StringToJSONString(Names[i])+'":'+Items[I].AsJSON;
+      Result:=Result+', ';
+    Result:=Result+'"'+StringToJSONString(Names[i])+'" : '+Items[I].AsJSON;
     end;
     end;
   If (Result<>'') then
   If (Result<>'') then
-    Result:='{'+Result+'}'
+    Result:='{ '+Result+' }'
   else
   else
     Result:='{}';
     Result:='{}';
 end;
 end;