package Error::Pure::HTTP::JSON;
use base qw(Exporter);
use strict;
use warnings;
use Error::Pure::Output::JSON qw(err_json);
use Error::Pure::Utils qw(err_helper);
use List::Util 1.33 qw(none);
use
^eval '/ms }
map { $_->{'sub'} } @{$stack_ar}) {
print "Content-type: application/json\n\n";
print err_json(\@errors);
return;
# Die for eval.
} else {
my $e = $errors[-1]->{'msg'}->[0];
d
=encoding utf8
=head1 NAME
Error::Pure::HTTP::JSON - Error::Pure module for JSON output over HTTP.
=head1 SYNOPSIS
use Error::Pure::HTTP::JSON qw(err);
err 'This is a fatal error', 'name', '
package Error::Pure::HTTP::JSON::Advance;
use base qw(Exporter);
use strict;
use warnings;
use Error::Pure::Output::JSON qw(err_json);
use Error::Pure::Utils qw(err_helper);
use List::Util 1.33 qw(n
{$key} = $ERR_PARAMETERS{$key};
}
# Print out.
print "Content-type: application/json\n\n";
print err_json($err_hr);
return;
# Die for eval.
} else {
my $e = $errors[-1]->{'msg'}->[0];
=head1 NAME
Error::Pure::HTTP::JSON::Advance - Error::Pure module for JSON output with additional parameters over HTTP.
=head1 SYNOPSIS
use Error::Pure::HTTP::JSON::Advance qw(err);
err 'This i