marian/scripts/json2text.pl
Marcin Junczys-Dowmunt 14457d0c58 turn into objects
2016-04-14 14:29:41 +02:00

15 lines
199 B
Perl

use strict;
use JSON;
use Data::Dumper;
my $json = "";
while(<STDIN>) {
$json .= $_;
}
my $d = from_json($json);
my @v;
foreach my $k (keys %$d) {
$v[$d->{$k}] = $k;
}
print "$_\n" foreach(@v);