The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

PLON - Serialize object to Perl code

SYNOPSIS

use PLON;

my $plon = encode_plon([]);
# $plon is `[]`

DESCRIPTION

PLON is yet another serialization library for Perl5, has the JSON.pm like interface.

WHY?

I need data dumper library supports JSON::XS/JSON::PP like interface. I use JSON::XS really hard. Then, I want to use other serialization library with JSON::XS/JSON::PP's interface.

Data::Dumper escapes multi byte chars. When I want copy-and-paste from Data::Dumper's output to my test code, I need to un-escape \x{5963} by my hand. PLON.pm don't escape multi byte characters by default.

STABILITY

This release is a prototype. Every API will change without notice. (But, I may not remove encode_plon($scalar) interface. You can use this.)

I need your feedback. If you have ideas or comments, please report to Github Issues.

OBJECT-ORIENTED INTERFACE

The object oriented interface lets you configure your own encoding or decoding style, within the limits of supported formats.

PLON Spec

LICENSE

Copyright (C) Tokuhiro Matsuno.

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

AUTHOR

Tokuhiro Matsuno tokuhirom@gmail.com

SEE ALSO