Hi, sounds like a bug to me. At least your workaround is not how it should work. :) I took a look at the JSON specification and I found a thing I always forget about it, the quotes for the keys. I added them to trunk. So could you give it another try before you send in the object?
Regards, Martin Am 31.07.2009 um 11:33 schrieb benco: > > Hello Martin, > > Thanks again for quick reply and help, you're great. It's strange > but the > produced Json seems not to be valid. Indeed, it produces a string > representation of a javascript object source but doesn't respect the > json > syntax. When I try to parse it, the qx.util.Json parser throws an > error... > > The current only way to manage it is to eval() the result of your > new static > method and then stringify the result. > > Is there a bug in your function ? > > Best, > > Benoît. > > > Martin Wittemann wrote: >> >> Good morning Benoît, >> >> we planed to add such a serializer anyway so I took some minutes and >> added the serializer for you in the trunk. >> (qx.util.Serializer.toJson()) :) >> >> Best, >> Martin >> >> >> Am 30.07.2009 um 17:28 schrieb benco: >> >>> >>> Hello, >>> >>> I'd like to revert back a model (in terms of databinding) to its >>> javascript >>> object equivalent to do some more remote operations and I wonder if >>> it's >>> possible to achieve it quickly... ? I looked for a method like this >>> in the >>> api but without success (the Object serialize() method seems not >>> taking into >>> account object properties - only strings). >>> >>> If it's not possible for the moment, I'll code it by myself ... but >>> it would >>> be stupid to code already existing features :) . >>> >>> Thanks in advance for your help ! >>> >>> Regards, >>> >>> Benoît. >>> -- >>> View this message in context: >>> http://www.nabble.com/Question-about-serialization-tp24740787p24740787.html >>> Sent from the qooxdoo-devel mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day >>> trial. Simplify your report design, integration and deployment - and >>> focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - >> and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> > > -- > View this message in context: > http://www.nabble.com/Question-about-serialization-tp24740787p24753634.html > Sent from the qooxdoo-devel mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
