The Perl Advent Calendar needs more articles for 2022. Submit your idea today!

NAME

Zing::Encoder::Dump - Perl Serialization Abstraction

ABSTRACT

Perl Data Serialization Abstraction

SYNOPSIS

  use Zing::Encoder::Dump;

  my $encoder = Zing::Encoder::Dump->new;

  # $encoder->encode({ status => 'okay' });

DESCRIPTION

This package provides a Data::Dumper data serialization abstraction for use with Zing::Store stores.

LIBRARIES

This package uses type constraints from:

Zing::Types

METHODS

This package implements the following methods:

decode

  decode(Str $data) : HashRef

The decode method decodes the data provided.

decode example #1
  # given: synopsis

  $encoder->decode('{ "status","okay" }');

encode

  encode(HashRef $data) : Str

The encode method encodes the data provided.

encode example #1
  # given: synopsis

  $encoder->encode({ status => 'okay' });

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

Copyright (C) 2011-2019, Al Newkirk, et al.

This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues