ckage JSON::XS::ByteString;
use 5.008;
use strict;
use warnings;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(encode_json encode_json_pretty encode_json_unblessed encode_json_unbl
essed_pretty decode_json decode_json_safe);
our $VERSION = 1.007000;
require XSLoader;
XSLoader::load('JSON::XS::ByteString', $VERSION);
=head1 NAME
JSON::XS::ByteString - A more predictable and co
entation for JSON
=head1 SYNOPSIS
use JSON::XS::ByteString qw(encode_json encode_json_unblessed decode_json decode_json_safe);
$json_string = encode_json($perl_data);
$json_string_prett
){
if( -59074 <= iv && iv <= 59074 ){
// (stolen from JSON::XS)
// optimise the "small number case"
// code
_NN(*out);
GIVEUP:
*out = NULL;
return str;
}
MODULE = JSON::XS::ByteString PACKAGE = JSON::XS::ByteString
void
encode_json(SV * data)
PPCODE:
visited_p = 0;
STRLEN ne
set(out_sv, cur - SvPVX(out_sv));
*SvEND(out_sv) = 0;
PUSHs(out_sv);
void
encode_json_pretty(SV * data)
PPCODE:
visited_p = 0;
STRLEN need_size = estimate_normal_p
set(out_sv, cur - SvPVX(out_sv));
*SvEND(out_sv) = 0;
PUSHs(out_sv);
void
encode_json_unblessed(SV * data)
PPCODE:
visited_p = 0;
STRLEN need_size = estimate_unble