Front page | perl.moose |
Postings from February 2011
Re: JSON serialization
Thread Previous
From:
Pedro Melo
Date:
February 15, 2011 02:31
Subject:
Re: JSON serialization
Message ID:
AANLkTi=Y7-dCc=nfc0N_PfTvgZG=pULO5RpD79ws=oGT@mail.gmail.com
Hi,
2011/2/15 Jiří Pavlovský <jira@getnet.cz>:
> 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.
Have you looked at KiokuDB? It does what you want, but it might do
more than you need.
Bye,
--
Pedro Melo
http://www.simplicidade.org/
xmpp:melo@simplicidade.org
mailto:melo@simplicidade.org
Thread Previous