<?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[JSON Parser Actor for macOS and Windows (public beta)]]></title><description><![CDATA[<p>Dear All,</p>
<p>Because of some posts by <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/205">@bonemap</a> and @robhblack I whipped together an actor that will parse JSON Strings.</p>
<p>Basically you input any JSON string to the 'json in' input. The 'elements' output will update to show you how many top level elements were found. You will the want to set the 'selectors' input to specify how many selectors you would like to access, and finally enter the the selector names in 'select 1', 'select 2', etc.</p>
<p>For example, this json string</p>
<pre>
{
    "first_name" : "Mark",
    "last_name" : "Coniglio",
    "employer" : "TroikaTronix"
}
</pre>
<p>Would be parsed by setting up the JSON Parser as follows:</p>
<p><img src="/assets/uploads/files/1585027523797-screen-shot-2020-03-24-at-6.25.00-am.png" style="cursor:pointer" /></p><p>When the souce data is an array (i.e., enclosed by square brackets [ ] ) then you need to access the items by index, starting at 0.</p>
<pre>
[
    "Mark",
    "Coniglio",
    "TroikaTronix"
]</pre>
<p><img src="/assets/uploads/files/1585027679324-screen-shot-2020-03-24-at-6.27.39-am.png" style="cursor:pointer" /></p><p>If one of those elements is an "object" -- meaning it is a list enclosed by curly brackets (e.g., { and } ) then you would use a second JSON Parser to pull extract those values<br /></p>
<pre>
{
    "first_name" : "Mark",
    "last_name" : "Coniglio",
    "employer" : "TroikaTronix",
    "jobs" :
    {
        "job_1" : "bus boy",
        "job_2" : "programmer",
        "job_3" : "record producer"
    }
}</pre>
<p><img src="/assets/uploads/files/1585027887829-screen-shot-2020-03-24-at-6.31.04-am.png" style="cursor:pointer" /></p><p>Or, you can access en embedded element by using a string of selectors separated by a colons. For example, the selector <strong>jobs:job_1</strong> will give you the element job_1 inside of the jobs. </p>
<p><img src="/assets/uploads/files/1585027973867-screen-shot-2020-03-24-at-6.32.33-am.png" style="cursor:pointer" /></p><p>Obviously we'll need better instructions for this. But since this is more of an advanced feature that will not be so widely used, I thought I'd get it out there now and let you all have a go and offer any feedback.</p>
<p>(Before you ask: no, I haven't made an actor to go the other direction yet. One step at a time. ;-) )</p>
<p>Here's an example file you can play with. It includes the Get URL Text actor in the third scene, replicating the task that <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/205">@bonemap</a> and @robhblack were talking about.</p>
<p><a href="/assets/uploads/files/1584981962363-json-test.izz">json-test.izz</a></p>
<p>Finally, here's the .zip file with the actors themselves for both MacOS and Windows.</p>
<p><a href="/assets/uploads/files/1586338602292-json-parser-v0.9.1.zip">json-parser-v0.9.1.zip</a><br /></p>
<p>(This plugin is notarized for Catalina.)</p>
<p>Once we know this is working, we'll get it uploaded to the plugins page. In the meantime, post any issues here.</p>
<p>Have Fun,<br />Mark</p>]]></description><link>https://community.troikatronix.com/topic/6503/json-parser-actor-for-macos-and-windows-public-beta</link><generator>RSS for Node</generator><lastBuildDate>Fri, 09 Oct 2026 01:25:00 GMT</lastBuildDate><atom:link href="https://community.troikatronix.com/topic/6503.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Mar 2020 16:48:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to JSON Parser Actor for macOS and Windows (public beta) on Wed, 08 Apr 2020 09:36:51 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/2">@mark</a></p>
<p>NOTE: the previou upload of the JSON Parser v0.9.1 did not have the Windows plugin. I have re-uploaded a corrected version on April 8, 2020 at 11:30 CEST. If you're missing the windows plugin, just download it again.</p><p><a href="https://community.troikatronix.com/assets/uploads/files/1586338602292-json-parser-v0.9.1.zip">json-parser-v0.9.1.zip</a></p>
<p>Best Wishes,<br />Mark</p>
<p></p>
<p></p>]]></description><link>https://community.troikatronix.com/post/40410</link><guid isPermaLink="true">https://community.troikatronix.com/post/40410</guid><dc:creator><![CDATA[mark]]></dc:creator><pubDate>Wed, 08 Apr 2020 09:36:51 GMT</pubDate></item><item><title><![CDATA[Reply to JSON Parser Actor for macOS and Windows (public beta) on Tue, 24 Mar 2020 05:34:19 GMT]]></title><description><![CDATA[<p>Edited on March 24, 2020: fixed a bug in 0.9.0 where you could not access arrays by index. Improved the instructions.</p>]]></description><link>https://community.troikatronix.com/post/40118</link><guid isPermaLink="true">https://community.troikatronix.com/post/40118</guid><dc:creator><![CDATA[mark]]></dc:creator><pubDate>Tue, 24 Mar 2020 05:34:19 GMT</pubDate></item></channel></rss>