var renderer = new US.Opportunity.OpportunityRenderViewModel({ opportunity: opportunity, currentJobBoardId: "6162c253-9d81-da08-c252-d43d2fcb8345", isViewingInternal: false }); #### m/\((\{".*?\})\)/gms #### my ( $json, $ref ); for ( $scrape =~ m/\((\{".*?\})\)/gms ) { $json = $1; $ref = decode_json $json; print Dumper $ref; }