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;