Re: JSON serialization

2011-02-21 Thread Stevan Little
On Feb 20, 2011, at 6:19 PM, Jiří Pavlovský wrote: > On 15.2.2011 15:04, Stevan Little wrote: >> >>> I'm pondering what way to use to serialize my Moose classes to JSON. I've >>> have been looking to MooseX::Storage but it seems it cannot handle more >>> than basic attribute types. Just the ve

Re: JSON serialization

2011-02-20 Thread Jiří Pavlovský
On 15.2.2011 15:04, Stevan Little wrote: I'm pondering what way to use to serialize my Moose classes to JSON. I've have been looking to MooseX::Storage but it seems it cannot handle more than basic attribute types. Just the very first class I tried: "Cannot handle type constraint (MooseX::Ty

Re: JSON serialization

2011-02-15 Thread Jiří Pavlovský
On 15.2.2011 15:04, Stevan Little wrote: Sorry, this feature never really got properly documented, but patches are always welcome, and doc patches are especially welcome. What you want to do is to look at the methods listed here: http://search.cpan.org/~bobtfish/MooseX-Storage-0.29/lib/MooseX/S

Re: JSON serialization

2011-02-15 Thread Stevan Little
On Feb 15, 2011, at 5:08 AM, Jiří Pavlovský wrote: > Hello, > > I'm pondering what way to use to serialize my Moose classes to JSON. I've > have been looking to MooseX::Storage but it seems it cannot handle more than > basic attribute types. Just the very first class I tried: "Cannot handle typ

Re: JSON serialization

2011-02-15 Thread Pedro Melo
Hi, 2011/2/15 Jiří Pavlovský : > I'm pondering what way to use to serialize my Moose classes to JSON. I've > have been looking to MooseX::Storage but it seems it cannot handle more than > basic attribute types. Just the very first class I tried: "Cannot handle > type constraint (MooseX::Types::URI

JSON serialization

2011-02-15 Thread Jiří Pavlovský
Hello, I'm pondering what way to use to serialize my Moose classes to JSON. I've have been looking to MooseX::Storage but it seems it cannot handle more than basic attribute types. Just the very first class I tried: "Cannot handle type constraint (MooseX::Types::URI::Uri)" There seems to be a