exporter. Default: depends on
availability.
Possible values are:
=over
=item C<http/json>
Sends data as JSON over HTTP.
=item C<http/protobuf>
Sends data as a Protobuf-encoded blob over HTTP.
=> $handle // *STDERR,
encoder => sub { ... } // \&Data::Dumper::Dumper || \&encode_json,
);
Create a new exporter. Takes an optional C<handle> parameter which will be
used as the t
_FORMAT> environment variable. Currently, the
only supported value is C<json>, in which case the data will be encoded
with L<JSON::MaybeXS/encode>.
The behaviour of the default encoder can be further
the keys or values they fall into. The resulting pairs will
be passed directly as arguments to L<JSON::MaybeXS/new> or L<Data::Dumper> as
appropriate.
The default configuration for L<Data::Dumper> i
t( /=/, $_, 2 ), @options;
if ( lc $format eq 'json' ) {
require JSON::MaybeXS;
my $json = JSON::MaybeXS->new(
# Defaults
# User overrides
%options,
);
sub { $json->encode(@_) };
}
else {
sub {
require