The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MetaPOD::Format::JSON::v1 - MetaPOD::JSON v1 SPEC Implementation

VERSION

version 0.3.0

METHODS

features

The list of features this version supports.

    does inherits namespace

dispatch_keys

Internal dispatch from a given key to the implementing method.

    $impl->dispatch_keys( $data, $result_object )

Every supported top level key has a corresponding method

    add_<keyname>

This method iterates $data calling the relevant handler for each key, passing the value of that key and the result object.

     $impl->dispatch_keys({ does => [] , $result_object )
     # ->
     # $impl->add_does([], $result_object );

NOTE: This method iterates the keys in $data in the order specified by features, and only iterates and invokes for items in features, deleting items out of $data as they are processed.

add_segment

Handler for each individual region of

    =begin MetaPOD::JSON

    <<DATA>>

    =end MetaPOD::JSON

Invoked as

    $impl->add_segment({ data => "string" }, $result_object );

Which in turn decodes, handles, and validates the data in that segment.

AUTHOR

Kent Fredric <kentfredric@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Kent Fredric <kentfredric@gmail.com>.

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