[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
guile-json 4.5.0 (introducing JSON types)
From: |
Aleix Conchillo Flaqué |
Subject: |
guile-json 4.5.0 (introducing JSON types) |
Date: |
Sun, 3 Jan 2021 00:48:42 -0800 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- guile-json 4.5.0 (introducing JSON types),
Aleix Conchillo Flaqué <=