i'm trying to use json-encode
from the purest_json library to create config files for the IEM AllRADecoder. now it might be a questionable endeavor to do this with Pd in general - but i'd like to see if it's possible anyway.
the aim is to create a file like https://plugins.iem.at/allradecoder/layoutWithAdditionalImaginaryLoudspeakers.json
... what i have so far works up until 10 speakers with some test data. but then, the symbol obviously gets too long and i get unnecessary escapings and the last parts of the data look like this:
\"Channel\":11\\,*"}
any ideas on how to solve this?
here's the patch.
test-json-encode.pd (ATTENTION: this writes a test.json file on bang in the patch directory)