[Csnd] Writing JSON files

Hello Everybody!

is there any way to write JSON files from inside Csound?

i want to collect data during a Csound performance, which i want to make human readable and also be able to load the data into a another Csound call later.

Greetings,
Philipp

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        GitHub · Where software is built
Discussions of bugs and features can be posted here

If you really want to have first class access to JSON in Csound, you should use these opcodes, also by Richard:

https://git.1bpm.net/csound-json/about/

Looks very promissing! Thank you all!

I would love to bundle them with Cabbage, but Richard uses a different JSON library than I, and I’m not sure I want to add another dependency. I might port them over. They seem to give you everything you would ever need when it comes to JSON.

Glad they’re useful to others!
Are you using https://github.com/nlohmann/json for Cabbage? I had a quick scope out and doesn’t look like that supports JSONPath, but aside from that might be a fairly straightforward job :slight_smile:

Yeah, that’s the one. I could live without support for JSONPath, although it’s a pretty nice feature I have to say!