<div dir="ltr">2013/2/28 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">
<br>
On Thu, 28 Feb 2013, silvioprog wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
2013/2/28 luiz americo pereira camara <<a href="mailto:luizmed@oi.com.br" target="_blank">luizmed@oi.com.br</a>><br>
2013/2/28 Michael Van Canneyt <<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>>:<br>
><br>
><br>
> On Thu, 28 Feb 2013, silvioprog wrote:<br>
><br>
>> Hello,<br>
>> Please see:<br>
>><br>
>> <a href="http://bugs.freepascal.org/view.php?id=23970" target="_blank">http://bugs.freepascal.org/<u></u>view.php?id=23970</a><br>
><br>
><br>
> Fixed.<br>
<br>
Seems that you committed by accident code to make AsJSON output more compact.<br>
<br>
This may lead to compatibility problems.<br>
<br>
Luiz<br>
<br>
<br>
You touched on an important point. It would be nice to be able to customize the output format of JSON. For example, currently<br>
the fpjson format is this:<br>
<br>
{ "foo" : "bar" }<br>
<br>
And I personally prefer:<br>
<br>
{ "foo": "bar" }<br>
<br>
The latter format is what we see in all JavaScript libraries. :)<br>
</blockquote>
<br></div>
I will not change the default format. Whitespace is irrelevant anyway.<br>
<br>
But: If you want to customize the output, you can use the FormatJSON function. It has many options.<br>
If you think of additional formatting options for this method, you are welcome to provide a patch.<br>
But please note that all these wishes will have impact on speed.<br>
<br>
Michael.</blockquote></div><div><br></div><div>You're right.</div><div><br></div><div>By default, the output could be uglify (without spaces). It is more fast.<br></div><div><br></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>