Help for this page

Select Code to Download


  1. or download this
    use Cpanel::JSON::XS qw( decode_json encode_json );
    use File::Slurper    qw( read_binary );
    ...
       for @$data;
    
    print encode_json( $data );
    
  2. or download this
    jq -n '
       (
    ...
       inputs |
       map( .watchers = $watchers_lkup[ .externalId ] )
    ' watchers.json file.json