With the current api, no. The code of guile-json could be used to implement srfi-180, but the current guile-json API could not efficiently implement srfi-180.
I am not Aleix, but I helped making it faster for the 4.0 release. -- Linus Björnstam On Thu, 2 Jul 2020, at 16:55, Bill Markmann wrote: > It looks like the surface API is different, but the internal json <--> > scheme records functionality overlaps... Any thoughts on whether > guile-json would serve as the underpinnings of an implementation of > srfi-180? > > https://srfi.schemers.org/srfi-180/srfi-180.html > > https://github.com/scheme-requests-for-implementation/srfi-180 > > - Bill > > On Thu, Jul 2, 2020 at 9:08 AM Ludovic Courtès <l...@gnu.org> wrote: > > > Hi, > > > > Aleix Conchillo Flaqué <aconchi...@gmail.com> skribis: > > > > > * Changes since 4.1.0 > > > > > > https://github.com/aconchillo/guile-json/blob/master/NEWS > > > > --8<---------------cut here---------------start------------->8--- > > - Introduce (define-json-mapping) which allows converting a JSON object > > into > > a record type and vice versa. The initial code for this feature was > > copied > > from the GNU Guix project. > > --8<---------------cut here---------------end--------------->8--- > > > > Nice! :-) > > > > There’s a bidirectional version here, but it’s slightly incompatible: > > > > > > https://gitlab.inria.fr/guix-hpc/guix-kernel/-/blob/master/jupyter/json.scm > > > > It relies on (guix records), which is not great for Guile-JSON. > > > > Ludo’. > > > > > > >