Group
Extension

Matches 3

JSON-XS-ByteString ( C/CI/CINDY/JSON-XS-ByteString-1.007.tar.gz, CINDY, 2022; MetaCPAN )
JSON-XS-ByteString/lib/JSON/XS/ByteString.pm ( view source; MetaCPAN )
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
JSON-XS-ByteString ( C/CI/CINDY/JSON-XS-ByteString-1.007.tar.gz, CINDY, 2022; MetaCPAN )
JSON-XS-ByteString/encode_gen.h ( view source; MetaCPAN )
){
                    if( -59074 <= iv && iv <= 59074 ){
                        // (stolen from JSON::XS)
                        // optimise the "small number case"
                        // code 
JSON-XS-ByteString ( C/CI/CINDY/JSON-XS-ByteString-1.007.tar.gz, CINDY, 2022; MetaCPAN )
JSON-XS-ByteString/ByteString.xs ( view source; MetaCPAN )
_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

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.