A tiny JSON parser and emitter for Perl 6 on Rakudo
Perl6
Latest commit 1b33a57 Oct 26, 2016 @zoffixznet zoffixznet committed with Add mandatory "perl" META field
The `perl` field specifies the minimal perl version for which this distribution can be installed and is a mandatory field. The value of `"6.*"` indicates any version suffices.

It is recommended to use [Test::META](https://modules.perl6.org/repo/Test::META) module as an author test, to catch any issues with the META file.

README

A simple Perl 6 module for serializing and deserializing JSON.

  use JSON::Tiny;
  say from-json('{ "a": 42 }').perl;
  say to-json { a => [1, 2, 'b'] };

JSON::Tiny implements RFC7159, which is a superset of ECMA-404, in that it
permits any value as a top-level JSON string, not just arrays and objects.

All files (unless noted otherwise) can be used, modified and redistributed
under the terms of the Artistic License Version 2. Examples (in the
documentation, in tests or distributed as separate files) can be considered
public domain.

To build and test this module, please get 'ufo' from
http://github.com/masak/ufo and run:

    ufo
    make
    make test

(You would normally be able to install this with panda, but it happens to be
one of the prerequisites for panda itself -- so until Rakudo does automatic
recompiles, panda will become very confused after completing the install.
New, tested versions of this module should be imported into panda's source
in ext/JSON__Tiny/, and panda's reboostrap.pl run. On the upside this means
that installing panda gives you JSON::Tiny right away.)

State:

    Works.

Missing features:

 * Detection of cycles in input data structures (might never be fixed)

Credits
    Moritz Lenz <moritz@faui2k3.org>
    Johan Viklund
    Jonathan Worthington