-
function TJSONObject.toString(indentFactor, indent: integer): string;
This function has a line: _keys := keys(); The _keys not free until the function exit.
Please add a try .. finally _keys.Free end; for this function.
The line: key := x.nextValue().toString(); will cause a memory leak, too.
Please write in this way:
with x.nextValue() do
begin
key...
2009-11-12 14:54:31 UTC by creationzy
-
v6Xcbj owtrmzxipbzw, [url=http://bswduvbgxhvv.com/]bswduvbgxhvv[/url], [link=http://wossaershnoc.com/]wossaershnoc[/link], http://nvuzazjychzy.com/.
2009-01-04 00:10:00 UTC by nobody
-
TJSONObject.clone() method don't return resultat
function TJSONObject.clone: TZAbstractObject;
var
json : TJSONObject;
begin
json := TJSONObject.create (self.toString());
end;
.
2008-10-12 20:26:17 UTC by dimmaq
-
how to do to navigate in objects ?????
it would like that went like this: js.next. js.prior ( ehehehe )
thank you very much for the attention.
Edson Alves.
Recife - Brazil.
2008-03-30 16:39:04 UTC by edsonjalves
-
well - i will describe a solution here
problem was in
function JSONTokener.nextString (quote : char): string;
commented code was
{case 'u':
sb.append((char)Integer.parseInt(next(4), 16));
break; }
right code must be
u':
sb := sb+WideChar(StrToInt('$'+next(4)));.
2006-06-14 09:10:59 UTC by nobody
-
I've got response from server which looks like
{"string":"\u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439
\u0437\u0430\u0439\u0434\u0438 \u043f\u043e\u0434
\u043b\u043e\u0433\u0438"}
and such \uXXXX strings returns to me like uXXXX
I had found a problem (required code was commented and
was not right) and now problem resolved
Where can i put a patch?.
2006-06-14 09:07:10 UTC by nobody
-
uJSON.pas release 1.0.4 is available for download.
what's new :
-implemented function clone for all wrapper classes with extended
TZAbstractObject
-use of method clone when replace one object in JSONObject
-new method JSONObject.clean - clean all values of JSONObject.
2006-01-12 19:51:56 UTC by fabiorecife
-
Release new version 1.0.1 to correct the uJSON.pas (JSONArray.put and JSONObject.getDouble) . When not build the dunit files to verify the uJSON.pas the trove categorization is Beta.
2005-11-15 10:46:30 UTC by fabiorecife
-
fabiorecife committed patchset 4 of module iws to the Delphi Web Utils CVS repository, changing 14 files.
2003-11-18 21:54:22 UTC by fabiorecife
-
fabiorecife committed patchset 3 of module iws to the Delphi Web Utils CVS repository, changing 7 files.
2003-11-18 21:51:14 UTC by fabiorecife