lilypond-devel
[Top][All Lists]
Advanced

[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 11:02:00 +0200

On Sat, Jun 20, 2020 at 11:00 AM Jonas Hahnfeld <hahnjo@hahnjo.de> wrote:
>
> Am Samstag, den 20.06.2020, 10:52 +0200 schrieb Han-Wen Nienhuys:
> > On Sat, Jun 20, 2020 at 1:30 AM Owen Lamb <owendlamb@gmail.com> 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.
>
> For jsoncpp, I know that upstream has instruction how to bundle the
> source with the code that uses it. This means no added dependency and
> no configure checks which are hard to get right. Not sure if this is
> also possible with jansson.

Nice. Also jsoncpp is C++ , so it's probably the better fit.

-- 
Han-Wen Nienhuys - hanwenn@gmail.com - http://www.xs4all.nl/~hanwen



reply via email to

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