Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Framework for making Moose-compatible object from json

by nataraj (Sexton)
on Sep 05, 2022 at 13:58 UTC ( #11146703=note: print w/replies, xml ) Need Help??


in reply to Re^2: Framework for making Moose-compatible object from json
in thread Framework for making Moose-compatible object from json

I'm curious about why MooseX::Storage (mentioned previously in this thread) wasn't up to the task?

Because I consider that case "object inside object inside object" is common case, and should be solved without any Moose code, just by mentioning "This is a subobject of following type". Like this:

j_obj "icon" =>(class => "WebService::DreamWidth::Icon", is =>'ro');

I even thinking about removing "is =>'ro'", making it default. In simple case developer should just list attributes and child objects. This is not case for MooseX::Storage

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2023-09-25 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?