Skip to content

Instantly share code, notes, and snippets.

@robrwo
Created September 17, 2013 16:34
Show Gist options
  • Save robrwo/6596904 to your computer and use it in GitHub Desktop.
Save robrwo/6596904 to your computer and use it in GitHub Desktop.
Quick and dirty hack to dump JSON data from STDIN as a Perl data structure.
#!/usr/bin/env perl
use v5.10.1;
use strict;
use warnings;
use Data::Dump 'dump';
use JSON::MaybeXS;
my $data = decode_json(<STDIN>);
say dump($data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment