Re: [fpc-pascal] Formating JSON outputs

2014-01-28 Thread Sven Barth
Am 28.01.2014 12:29, schrieb luciano de souza: Hello all, JSON is a very easy format to handle with Freepascal. However, the output is not so readable when the number of registers increase. An example of it is: [snip] s.text := r.AsJson; s.SavetoFile('test.txt'); [snip] The corresponding out

Re: [fpc-pascal] Formating JSON outputs

2014-01-28 Thread Michael Van Canneyt
On Tue, 28 Jan 2014, luciano de souza wrote: Hello all, JSON is a very easy format to handle with Freepascal. However, the output is not so readable when the number of registers increase. An example of it is: [snip] The corresponding output is: { "people" : [{ "name" : "Luciano de Souza"

[fpc-pascal] Formating JSON outputs

2014-01-28 Thread luciano de souza
Hello all, JSON is a very easy format to handle with Freepascal. However, the output is not so readable when the number of registers increase. An example of it is: program test; {$mode objfpc}{$H+} uses classes, fpjson; var r, j: TJSONObject; a: TJSONArray; s: TStringlist; BEGIN s := TStringli