Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by nataraj (Sexton)
on Aug 20, 2022 at 17:37 UTC ( #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 contemplating the Monastery: (9)
As of 2023-11-28 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?