Al Newkirk > Bubblegum-0.19 > Bubblegum::Wrapper::Json

Download:
Bubblegum-0.19.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.19   Source   Latest Release: Bubblegum-0.31

NAME ^

Bubblegum::Wrapper::Json - Bubblegum Wrapper around JSON Serialization

VERSION ^

version 0.19

SYNOPSIS ^

    use Bubblegum;

    my $data = {1..3,{4,{5,6,7,{8,9,10,11}}}};

    my $string  = $data->json->encode;
    my $hashref = $string->json->decode;

DESCRIPTION ^

Bubblegum::Wrapper::Json is a Bubblegum wrapper which provides the ability to endcode/decode JSON data structures. It is not necessary to use this module as it is loaded automatically by the Bubblegum class.

METHODS ^

decode

The decode method deserializes the stringified JSON structure using the JSON::Tiny module.

encode

The encode method serializes the Perl data structure using the JSON::Tiny module.

AUTHOR ^

Al Newkirk <anewkirk@ana.io>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Al Newkirk.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: