in reply to Re: Framework for making Moose-compatible object from json
in thread Framework for making Moose-compatible object from json
Maybe what you need is just a set of rules which map parts of the structure to their corresponding class.
That's exactly what I need. I only did not managed to put it into words properly
There is a chance that Moose itself is all the "framework" you need
This looks like a good idea, but it would miss backward serialization (object->json). So you can do something like that:
my $obj= MyCoolRestObject::UserInfo->new($api->get("/path/to/proper/ +call")); $obj->phone1("+722233344555"); $api->put("path/to/put/call",$obj->as_json);
So as far as I can get, there is no such mapper for JSON, that would work out of box the same way MooseX::DOM works for XML. And may be I should write it first, and then use it
In Section
Seekers of Perl Wisdom