Hi Ray - and everyone else. It is an object returned via the CF9 ORM. So it actually contans "other" objects via its relationships, too.
Interestingly I could serialize the individual sub components without error. But as a whole - it didn't seem like to it. I did notice in the java stack trace, that it ended with "stack overfow". So there might be some kind of circular reference via the relationships that is causig my woes - I really don't know. But via CFdump it all outputs fine and dandy and "without" the "see this object" that you normally get when you have a circular reference showing up in cfdump. I am happy to provude the code, if that's going to help... I am certainly not beyond thinking that is my code (ORm relationships etc) that could eb at fault - But thought I would see if there was an apparent "easy" answer first, that I had overlooked. Gavin. On Jul 14, 11:44 pm, Raymond Camden <rcam...@gmail.com> wrote: > I don't think size matters - any more than it does with anything else > in CF. Technically, I could create a CF array with 1 billion elements, > but I might run out of RAM. I'd think you would have more trouble > making the large object than serializing it (although the string > generated may be 'bigger' RAM wise). I guess I personally wouldn't > worry about it. > > Max depth? Not that I know of. > > You mentioned complex obs - are you trying to serialize a CFC? If so, > you can't. Well, you _can_, but you just get the This scope variables. > > Maybe you can share more about the object you are trying to serialize? > > > > On Tue, Jul 14, 2009 at 2:26 AM, Gavin Baumanis<beauecli...@gmail.com> wrote: > > > Hi Everyone, > > > I seem to be having an issue with serialisation of objects to JSON > > objects. > > > I thought initially that it was a cfdate object issue. But I can > > serialize individual datetime objects just fine. > > The only things left - that I don't know the answer to are; > > > is there a max size that can be converted? > > Is there a max depth? can I have nested objects and serialise the > > "top" object and expect it all to work? > > > Technically I have no idea what I am talking about - which makes it a > > little hard to ask for help... > > All I know is that I can serialze simple data values and deserialize > > them fine and dandy - but it doesn't seem to want to work for me with > > a complex object graph. > > > Gavin. > > -- > =========================================================================== > Raymond Camden, ColdFusion Jedi Master > > Email : r...@camdenfamily.com > Blog :www.coldfusionjedi.com > AOL IM : cfjedimaster > > Keep up to date with the community:http://www.coldfusionbloggers.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---