[fpc-pascal] FPJSON and float values.

silvioprog silvioprog at gmail.com
Thu Feb 28 17:30:19 CET 2013


2013/2/28 luiz americo pereira camara <luizmed at oi.com.br>

> 2013/2/28 Michael Van Canneyt <michael at freepascal.org>:
> >
> >
> > On Thu, 28 Feb 2013, silvioprog wrote:
> >
> >> Hello,
> >> Please see:
> >>
> >> http://bugs.freepascal.org/view.php?id=23970
> >
> >
> > Fixed.
>
> Seems that you committed by accident code to make AsJSON output more
> compact.
>
> This may lead to compatibility problems.
>
> Luiz
>

You touched on an important point. It would be nice to be able to customize
the output format of JSON. For example, currently the fpjson format is this:

{ "foo" : "bar" }

And I personally prefer:

{ "foo": "bar" }

The latter format is what we see in all JavaScript libraries. :)

-- 
Silvio Cl├ęcio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130228/81e20f55/attachment.html>


More information about the fpc-pascal mailing list