From: "Aleix Conchillo Flaqué" <aconchillo@gmail.com>
To: guile-user <guile-user@gnu.org>
Subject: guile-json 4.5.0 (introducing JSON types)
Date: Sun, 3 Jan 2021 00:48:42 -0800 [thread overview]
Message-ID: <CA+XASoXVHea3C-Ow=y16nX3h5nwQijzdzgHMeaR84f_oDSNn+Q@mail.gmail.com> (raw)
Happy New Year!
I'm excited to announce guile-json 4.5.0. This version introduces a
new way of defining a mapping between JSON objects and records.
https://github.com/aconchillo/guile-json/
Version 4.2.0 introduced (define-json-mapping), which was copied from
Guix, as an easy way to define JSON objects as record types (and vice
versa). One could do:
(define-json-mapping <account>
make-account
account?
json->account
(id account-id)
(username account-username))
In this new version we add (define-json-type) which is implemented on
top of (define-json-mapping) as even a simpler way to define these
same mappings:
(define-json-type <account>
(id)
(username))
See README for more details.
* About
guile-json is a JSON module for Guile. It supports parsing and
building JSON documents according to the http://json.org
specification.
- Complies with http://json.org specification.
- Builds JSON documents programmatically using scheme data types.
- Allows JSON pretty printing.
* Download
Compressed sources and a GPG detached signature[*]:
https://download.savannah.nongnu.org/releases/guile-json/guile-json-4.5.0.tar.gz
https://download.savannah.nongnu.org/releases/guile-json/guile-json-4.5.0.tar.gz.sig
[*] To verify download both files and then run:
gpg --keyserver keys.openpgp.org \
--recv-keys 7CEC5511C8D057A9EF17470C54D4CC6FFC7468F4
gpg --verify guile-json-4.5.0.tar.gz.sig
* Changes since 4.5.0
https://github.com/aconchillo/guile-json/blob/master/NEWS
Bugs and comments can be reported at
https://github.com/aconchillo/guile-json/issues
Happy hacking!
Aleix
reply other threads:[~2021-01-03 8:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+XASoXVHea3C-Ow=y16nX3h5nwQijzdzgHMeaR84f_oDSNn+Q@mail.gmail.com' \
--to=aconchillo@gmail.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).