<?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[[ANSWERED] Json question (id)]]></title><description><![CDATA[<p>Hello all,</p>
<p>I am studying Json structure to better understand the bundling and the parsing of data. Although Mark's examples in the help section of the site are clear and function perfectly I tried other examples and I wasn't able to make the work completely. I think it has to do with how Isadora is managing the id</p>
<p>{<br />  "student": [ <br /><span class="Apple-tab-span"> </span><br />     { <br />        "id":"01", <br />        "name": "Tom", <br />        "lastname": "Price" <br />     }, <br /><span class="Apple-tab-span"> </span><br />     { <br />        "id":"02", <br />        "name": "Nick", <br />        "lastname": "Thameson" <br />     } <br />  ]   <br />}</p>
<p>As you can see in the image it is pretty simple, but Id don't seem to work correctly. The example was taken <a href="https://www.guru99.com/json-tutorial-example.html#6" target="_blank">here</a></p>
<p></p>
<p>What is wrong ?</p>
<p><br />Thanks</p>
<p><img src="/assets/uploads/files/1667171139025-screenshot-2022-10-30-at-7.05.33-pm.png" /></p>]]></description><link>https://community.troikatronix.com/topic/8179/answered-json-question-id</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 23:28:34 GMT</lastBuildDate><atom:link href="https://community.troikatronix.com/topic/8179.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Oct 2022 23:06:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [ANSWERED] Json question (id) on Thu, 03 Nov 2022 21:07:06 GMT]]></title><description><![CDATA[<p>@dusxThanks,</p><p>I still don't know wow to do that in Javascript, bit it is nice to know that is is possible.</p><p></p><p>Thanks again</p>]]></description><link>https://community.troikatronix.com/post/50156</link><guid isPermaLink="true">https://community.troikatronix.com/post/50156</guid><dc:creator><![CDATA[Armando]]></dc:creator><pubDate>Thu, 03 Nov 2022 21:07:06 GMT</pubDate></item><item><title><![CDATA[Reply to [ANSWERED] Json question (id) on Wed, 02 Nov 2022 17:03:58 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/6">@armando</a> said:</p>
<blockquote>loop through the values</blockquote>
<p> I wasn't sure how you wanted to find the values. <br />For example if you wanted the values for any student with the lastname "Price", using javascript you could search all the students and return the records for any that match.<br />In the case of these student ID's you might search for the student with the id of "01" get the details for Tom Price.</p>]]></description><link>https://community.troikatronix.com/post/50150</link><guid isPermaLink="true">https://community.troikatronix.com/post/50150</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Wed, 02 Nov 2022 17:03:58 GMT</pubDate></item><item><title><![CDATA[Reply to [ANSWERED] Json question (id) on Wed, 02 Nov 2022 02:46:47 GMT]]></title><description><![CDATA[<p>Thanks a lot <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/124">@dusx</a>,</p><p>everything works like a charm now, Although I don't really get the javascript workaround to use less Json parsers and "loop through the values. Whwt do you mean can you give an example please ?</p><p>Thanks</p><p>Armando</p>]]></description><link>https://community.troikatronix.com/post/50139</link><guid isPermaLink="true">https://community.troikatronix.com/post/50139</guid><dc:creator><![CDATA[Armando]]></dc:creator><pubDate>Wed, 02 Nov 2022 02:46:47 GMT</pubDate></item><item><title><![CDATA[Reply to [ANSWERED] Json question (id) on Mon, 31 Oct 2022 16:08:36 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/6">@armando</a> said:</p>
<blockquote>pretty simple, but Id don't seem to work correctly</blockquote>
<p> I believe it is working as expected. The issue here is that the selection is not done using the "id" value in the JSON data. The selection is made based on the numeric index. The index is zero-based, so this is why you see selecting 0 outputs the JSON with the 'id' of '01'. The position-based index has no relationship to the data's "id".</p>
<p><img src="/assets/uploads/files/1667181419028-json-ref-zerobased.png" style="cursor:pointer" /><br /></p><p>If you want to combine the selections together so you use fewer JSON Parsers, I added a few to the bottom of this screen capture.</p>
<p><img src="/assets/uploads/files/1667181483968-some-more-selections.png" style="cursor:pointer" /><br /></p><p>If you want to get the data for a Student where the "id" value equals a specific value you need to send the JSON into the Javascript actor and loop through the values looking for a match.</p>]]></description><link>https://community.troikatronix.com/post/50112</link><guid isPermaLink="true">https://community.troikatronix.com/post/50112</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Mon, 31 Oct 2022 16:08:36 GMT</pubDate></item></channel></rss>