use UNIVERSAL::DOES;
use MIME::Types;
use LWP::UserAgent;
use HTTP::Request;
use File::Temp;
use JSON;
use YAML ();
my $ua = LWP::UserAgent->new;
$ua->agent("Tree_Query_CGI/1.0 ");
my $conf;
my $UR
} @$services)),
$cgi->end_html()
);
} elsif ($format eq 'json') {
print $cgi->header(-type => 'text/x-json',
-charset=>'UTF-8'
);
q 'json') {
print $cgi->header(-type => 'text/x-json',
-charset=>'UTF-8'
);
my $json = JSON->new->allow_nonref;
print $json->p