<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[creating JSON files with large arrays in Pd]]></title><description><![CDATA[<p>i'm trying to use <code>json-encode</code> 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.</p>
<p>the aim is to create a file like <a href="https://plugins.iem.at/allradecoder/layoutWithAdditionalImaginaryLoudspeakers.json" rel="nofollow">https://plugins.iem.at/allradecoder/layoutWithAdditionalImaginaryLoudspeakers.json</a></p>
<p>... 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:</p>
<pre><code>\&quot;Channel\&quot;:11\\,*&quot;}
</code></pre>
<p><img src="/uploads/files/1733608712240-image.png" alt="image.png" class="img-responsive img-markdown" /><br />
any ideas on how to solve this?</p>
<p>here's the patch.<br />
<a href="/uploads/files/1733608723854-test-json-encode.pd">test-json-encode.pd</a> (ATTENTION: this writes a test.json file on bang in the patch directory)</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14957/creating-json-files-with-large-arrays-in-pd</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 14:32:54 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14957.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 Dec 2024 22:02:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to creating JSON files with large arrays in Pd on Sat, 07 Dec 2024 22:02:45 GMT]]></title><description><![CDATA[<p>i'm trying to use <code>json-encode</code> 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.</p>
<p>the aim is to create a file like <a href="https://plugins.iem.at/allradecoder/layoutWithAdditionalImaginaryLoudspeakers.json" rel="nofollow">https://plugins.iem.at/allradecoder/layoutWithAdditionalImaginaryLoudspeakers.json</a></p>
<p>... 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:</p>
<pre><code>\&quot;Channel\&quot;:11\\,*&quot;}
</code></pre>
<p><img src="/uploads/files/1733608712240-image.png" alt="image.png" class="img-responsive img-markdown" /><br />
any ideas on how to solve this?</p>
<p>here's the patch.<br />
<a href="/uploads/files/1733608723854-test-json-encode.pd">test-json-encode.pd</a> (ATTENTION: this writes a test.json file on bang in the patch directory)</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14957/creating-json-files-with-large-arrays-in-pd</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14957/creating-json-files-with-large-arrays-in-pd</guid><dc:creator><![CDATA[ben.wes]]></dc:creator><pubDate>Sat, 07 Dec 2024 22:02:45 GMT</pubDate></item><item><title><![CDATA[Reply to creating JSON files with large arrays in Pd on Sun, 08 Dec 2024 19:10:27 GMT]]></title><description><![CDATA[<p>responding to myself here ... it's possible to iteratively append data to a top-level array with <code>purest_json</code> (which avoids the restriction to symbols of MAXPDSTRING size).</p>
<p>that's not possible for nested keys though (which is a requirement in my case). i changed the purest_json code now so that i can add to nested keys via messages like <code>array LoudspeakerLayouts.Loudspeakers $1</code>. not sure if that's the &quot;right&quot; way and i'd still be curious if other people see better options in Pd for it!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14957/creating-json-files-with-large-arrays-in-pd/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14957/creating-json-files-with-large-arrays-in-pd/2</guid><dc:creator><![CDATA[ben.wes]]></dc:creator><pubDate>Sun, 08 Dec 2024 19:10:27 GMT</pubDate></item></channel></rss>