Csound Csound-dev Csound-tekno Search About

[Csnd] Writing JSON files

Date2026-01-13 09:23
FromPhilipp Neumann <0000119f78f3a4f9-dmarc-request@LISTSERV.HEANET.IE>
Subject[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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2026-01-13 09:58
FromTarmo Johannes
SubjectRe: [Csnd] Writing JSON files
Attachmentsjson.udo  example.csd  
Hi!

I found this UDO and example by Richard Knight of JSON busines from my precious mailinglist-donwloads folder.
I have not tried myself but it is definitely good to explore!

tarmo

Kontakt Philipp Neumann (<0000119f78f3a4f9-dmarc-request@listserv.heanet.ie>) kirjutas kuupäeval T, 13. jaanuar 2026 kell 11:23:
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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2026-01-13 11:39
FromRory Walsh
SubjectRe: [Csnd] Writing JSON files
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/

On Tue, 13 Jan 2026 at 09:58, Tarmo Johannes <trmjhnns@gmail.com> wrote:
Hi!

I found this UDO and example by Richard Knight of JSON busines from my precious mailinglist-donwloads folder.
I have not tried myself but it is definitely good to explore!

tarmo

Kontakt Philipp Neumann (<0000119f78f3a4f9-dmarc-request@listserv.heanet.ie>) kirjutas kuupäeval T, 13. jaanuar 2026 kell 11:23:
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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2026-01-14 06:52
FromPhilipp Neumann <0000119f78f3a4f9-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] Writing JSON files
Looks very promissing! Thank you all!

Am 13.01.2026 um 12:39 schrieb Rory Walsh <rorywalsh@EAR.IE>:

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/

On Tue, 13 Jan 2026 at 09:58, Tarmo Johannes <trmjhnns@gmail.com> wrote:
Hi!

I found this UDO and example by Richard Knight of JSON busines from my precious mailinglist-donwloads folder.
I have not tried myself but it is definitely good to explore!

tarmo

Kontakt Philipp Neumann (<0000119f78f3a4f9-dmarc-request@listserv.heanet.ie>) kirjutas kuupäeval T, 13. jaanuar 2026 kell 11:23:
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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2026-01-14 09:31
FromRory Walsh
SubjectRe: [Csnd] Writing JSON files
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. 

On Wed, 14 Jan 2026 at 06:52, Philipp Neumann <0000119f78f3a4f9-dmarc-request@listserv.heanet.ie> wrote:
Looks very promissing! Thank you all!

Am 13.01.2026 um 12:39 schrieb Rory Walsh <rorywalsh@EAR.IE>:

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/

On Tue, 13 Jan 2026 at 09:58, Tarmo Johannes <trmjhnns@gmail.com> wrote:
Hi!

I found this UDO and example by Richard Knight of JSON busines from my precious mailinglist-donwloads folder.
I have not tried myself but it is definitely good to explore!

tarmo

Kontakt Philipp Neumann (<0000119f78f3a4f9-dmarc-request@listserv.heanet.ie>) kirjutas kuupäeval T, 13. jaanuar 2026 kell 11:23:
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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2026-01-15 00:50
FromRichard Knight
SubjectRe: [Csnd] Writing JSON files

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 :)

 


On 2026-01-14 09:31, Rory Walsh wrote:

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. 

On Wed, 14 Jan 2026 at 06:52, Philipp Neumann <0000119f78f3a4f9-dmarc-request@listserv.heanet.ie> wrote:
Looks very promissing! Thank you all!

Am 13.01.2026 um 12:39 schrieb Rory Walsh <rorywalsh@EAR.IE>:

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/

On Tue, 13 Jan 2026 at 09:58, Tarmo Johannes <trmjhnns@gmail.com> wrote:
Hi!
 
I found this UDO and example by Richard Knight of JSON busines from my precious mailinglist-donwloads folder.
I have not tried myself but it is definitely good to explore!

tarmo

Kontakt Philipp Neumann (<0000119f78f3a4f9-dmarc-request@listserv.heanet.ie>) kirjutas kuupäeval T, 13. jaanuar 2026 kell 11:23:
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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2026-01-15 09:13
FromRory Walsh
SubjectRe: [Csnd] Writing JSON files
Yeah, that's the one. I could live without support for JSONPath, although it's a pretty nice feature I have to say!

On Thu, 15 Jan 2026 at 00:50, Richard Knight <richard@1bpm.net> wrote:

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 :)

 


On 2026-01-14 09:31, Rory Walsh wrote:

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. 

On Wed, 14 Jan 2026 at 06:52, Philipp Neumann <0000119f78f3a4f9-dmarc-request@listserv.heanet.ie> wrote:
Looks very promissing! Thank you all!

Am 13.01.2026 um 12:39 schrieb Rory Walsh <rorywalsh@EAR.IE>:

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/

On Tue, 13 Jan 2026 at 09:58, Tarmo Johannes <trmjhnns@gmail.com> wrote:
Hi!
 
I found this UDO and example by Richard Knight of JSON busines from my precious mailinglist-donwloads folder.
I have not tried myself but it is definitely good to explore!

tarmo

Kontakt Philipp Neumann (<0000119f78f3a4f9-dmarc-request@listserv.heanet.ie>) kirjutas kuupäeval T, 13. jaanuar 2026 kell 11:23:
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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here