https://github.com/awncorp/zing-encoder-json
JSON Serialization for Zing Processes
https://github.com/awncorp/zing-encoder-json
json perl perl5
Last synced: about 1 month ago
JSON representation
JSON Serialization for Zing Processes
- Host: GitHub
- URL: https://github.com/awncorp/zing-encoder-json
- Owner: awncorp
- License: other
- Created: 2020-12-18T22:14:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-19T02:36:50.000Z (over 5 years ago)
- Last Synced: 2025-11-11T15:24:29.279Z (8 months ago)
- Topics: json, perl, perl5
- Language: Perl
- Homepage: https://metacpan.org/release/Zing-Encoder-Json
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: CHANGES
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
NAME
Zing::Encoder::Json - JSON Serialization Abstraction
ABSTRACT
JSON Data Serialization Abstraction
SYNOPSIS
use Zing::Encoder::Json;
my $encoder = Zing::Encoder::Json->new;
# $encoder->encode({ status => 'okay' });
DESCRIPTION
This package provides a JSON 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