[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing JSON in C++

From: Han-Wen Nienhuys
Subject: Re: Parsing JSON in C++
Date: Sat, 20 Jun 2020 10:52:10 +0200

On Sat, Jun 20, 2020 at 1:30 AM Owen Lamb <> wrote:
> Hi all,
> I need to be able to expose the contents of a SMuFL font's JSON metadata
> file to LilyPond. From what I can tell, LilyPond currently doesn't have any
> sort of JSON-parsing library in its dependencies, either in Scheme or in
> C++. An internet search revealed that there are... a *lot* of options.
> Is there a particular one that would suit LilyPond the
> best, legally/otherwise?

I know of jansson, which is used by universal-ctags, which is a plain
C library.

I took a look at jsoncpp mentioned below as well.

Both jansson and jsoncpp appear to come with extensive docs and tests,
which is encouraging. They're roughly equally large (5k lines), and
appear to have no further dependencies. They're both available under
MIT license, which is  OK for us.

guile-json checks in its configure scripts for guile 2.x, so you'd
have to check if it works at all with GUILE 1.8. The dynamic nature of
JSON may be a better fit to GUILE, but I think we'll be accessing the
data from C++ mainly, so it's probably better to pick a C(++) library.

> Thanks,
> Owen

Han-Wen Nienhuys - -

reply via email to

[Prev in Thread] Current Thread [Next in Thread]