1
Files
myapi/myapi-confcheck.pl
eleksir 457d289f1c Introduce buildinfo.pm, update sample config update TODO
+ Add buildinfo.pm - api for slackbuild env metadata
* Update .psgi files
* update sample config
* update TODO - remove checked-in milestones
2019-11-14 01:43:38 +03:00

22 lines
369 B
Perl
Executable File

#!/usr/bin/perl
use strict;
use warnings "all";
use JSON::PP;
my $conf = "data/myapi.json";
my $jstr = "";
my $sep = $/;
$/ = '';
open (C, $conf) || die "No such file $conf\n";
$jstr = <C>;
close C;
my $c = JSON::PP->new->decode($jstr);
my $j = JSON::PP->new->pretty->canonical->indent_length(4);
print $j->encode($c);
# vim: set ft=perl noet ai ts=4 sw=4 sts=4: