Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by nataraj (Sexton)
on Aug 20, 2022 at 17:37 UTC ( [id://11146266]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       { 
          "body_raw" : "This is <b>Entry 1</b>",
    ...
          "subject_raw" : "Entry 1",
          "body_html" : "This is <b>Entry 1</b>"
       }
    
  2. or download this
    package Moose::MyCoolRestObject;
    
    ...
    has_json_datetime datetime => ();
    has_json_int id => ();
    has_json_object icon => ("Moose::MyCoolRestObject::Icon");
    
  3. or download this
      my $obj = Moose::MyCoolRestObject->new($json);
      print $obj->icon->username;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found