On Thu, Apr 5, 2012 at 07:07, thron7 <[email protected]> wrote:
>
> On 04/05/2012 12:08 PM, fprijate wrote:
> > Hi
> >
> > Platform qx 1.6
> >
> > Static method qx.util.Serializer.toUriParameter not working (returns
> empty
> > string);
> >
> > Sample:
> >
> > console.log(qx.util.Serializer.toUriParameter({a:1}));
> >
> > While
> > console.log(qx.util.Serializer.toJson({a:1}));
> > works as expected.
>
> Well, the .toJson method seems to be a bit more lenient in this regard.
> But the API doc for both methods state that the first argument is to be
> a *qooxdoo* object, i.e. one deriving from qx.core.Object. This is not
> the case with a JS object literal.
>
As point of reference, I don't believe I have *ever* had a need to
serialize a qooxdoo object (outside of the data model's own use of such),
but I use qx.util.Serializer.toJson() for serializing a native object all
the time. Were I to need a URI representation, I would expect
toUriParameter() to allow converting from a native object as well.
Derrell
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel