Help for this page

Select Code to Download


  1. or download this
    {
        "items" : [
    ...
             }
            ]
    }
    
  2. or download this
    $inventors_obj = jsonToObj($inventors_json[0]);
    
    #I want to iterate through my list of inventors
    @inventors_array = $inventors_obj->{"items"};
    
  3. or download this
    #print name doesn't work, because the entire object is #stored at $inv
    +entors_array[0].
    print $inventors_array[0]->{"name"}
    ...
    $inventors_array[1]->{"name"} = "New Name";
    #But I can do with an array of hashes...
    $inventors_array[1]{"name"} = "New Name";