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

Reply via email to