Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moritz/json
A tiny JSON parser and emitter for Perl 6 on Rakudo
https://github.com/moritz/json
Last synced: 16 days ago
JSON representation
A tiny JSON parser and emitter for Perl 6 on Rakudo
- Host: GitHub
- URL: https://github.com/moritz/json
- Owner: moritz
- Created: 2009-03-23T21:47:39.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2023-09-21T13:16:01.000Z (over 1 year ago)
- Last Synced: 2024-11-05T20:49:07.956Z (2 months ago)
- Language: Perl 6
- Homepage: A JSON parser and emitter for Perl 6 on Rakudo
- Size: 111 KB
- Stars: 76
- Watchers: 14
- Forks: 16
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example
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'] };# Supported Standards
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.# License
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.# Installation and Tests
To install this module, please use zef from https://github.com/ugexe/zef and
typezef install JSON::Tiny
or from a checkout of this source tree,
zef install .
You can run the test suite locally like this:
prove -e 'perl6 -Ilib' t/