Ark
view release on metacpan or search on metacpan
lib/Ark/View/JSON.pm view on Meta::CPAN
}
if (defined (my $status_code_field = $self->status_code_field)) {
if (exists $data->{$status_code_field}) {
$c->res->header($self->status_code_header => $data->{$status_code_field});
}
}
my $output;
## add UTF-8 BOM if the client is Safari ### XXXX
if ($self->allow_callback and
($c->req->user_agent || '') =~ m/Safari/ and
($c->req->user_agent || '') !~ m/Chrome/) {
$output = "\xEF\xBB\xBF";
}
$output .= "$cb(" if $cb;
$output .= $json;
$output .= ");" if $cb;
( run in 0.318 second using v1.01-cache-2.11-cpan-f29a10751f0 )