JSON serialization

[email protected] (Jiří Pavlovský)
Newsgroups perl.moose
Message-ID <[email protected]>
  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 way to add custom handlers, but the documentation is 
scarce.
I also tried the MooseX::Storage::Format::JSONpm, but the result is the 
same.

Or should I go with plain JSON module and add the TO_JSON method to my 
classes?

Thank you,
Jiri
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.