<?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[Accessing decoded JSON array]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I am new to using UIFlow, but not to programming.<br />
I am using UIFlow on my M5Stack project.<br />
I am having difficuly in accessing a JSON decoded array.<br />
Within the Python code I have a snippet of code:-</p>
<pre><code>Decoded_Packet = json.loads(Packet)
Decoded_Location = Decoded_Packet["location"]
</code></pre>
<p dir="auto">Which works in my application, but it won't change to the UIFlow - Blockly representation, nor save and load correctly.<br />
So my question in Blockly what is the equivalent of:-<br />
Decoded_Location =  Decoded_Packet["location"]<br />
or<br />
Decoded_OutTemp = Decoded_Packet["stats]["current"]["outTemp"]</p>
<p dir="auto">Which work in the Python coding.</p>
<p dir="auto">Regards<br />
Phil.</p>
]]></description><link>https://community.m5stack.com/topic/2687/accessing-decoded-json-array</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 12:22:21 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2687.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Jan 2021 14:46:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Accessing decoded JSON array on Fri, 16 Jun 2023 18:28:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rmorgan" aria-label="Profile: rmorgan">@<bdi>rmorgan</bdi></a> please dont double post.</p>
]]></description><link>https://community.m5stack.com/post/21219</link><guid isPermaLink="true">https://community.m5stack.com/post/21219</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Fri, 16 Jun 2023 18:28:58 GMT</pubDate></item><item><title><![CDATA[Reply to Accessing decoded JSON array on Thu, 15 Jun 2023 19:57:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kombistack" aria-label="Profile: kombistack">@<bdi>kombistack</bdi></a> Im trying to do something similar to this. I'm subscribing to an AWS IOT topic which is publishing a JSON. I can receive the whole message but in trying to extract one field from the JSON its not returning anything. Pic below</p>
<p dir="auto"><img src="/assets/uploads/files/1686859049160-197a7526-c043-4220-8830-205522146090-image-resized.png" alt="0_1686859057609_197a7526-c043-4220-8830-205522146090-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/21213</link><guid isPermaLink="true">https://community.m5stack.com/post/21213</guid><dc:creator><![CDATA[rmorgan]]></dc:creator><pubDate>Thu, 15 Jun 2023 19:57:35 GMT</pubDate></item><item><title><![CDATA[Reply to Accessing decoded JSON array on Tue, 04 Apr 2023 12:25:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/philg1300" aria-label="Profile: philg1300">@<bdi>philg1300</bdi></a><br />
Thanks Phil, this was very helpfull for me too.</p>
]]></description><link>https://community.m5stack.com/post/20517</link><guid isPermaLink="true">https://community.m5stack.com/post/20517</guid><dc:creator><![CDATA[Kombistack]]></dc:creator><pubDate>Tue, 04 Apr 2023 12:25:03 GMT</pubDate></item><item><title><![CDATA[Reply to Accessing decoded JSON array on Sat, 02 Jan 2021 15:59:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sodoku" aria-label="Profile: sodoku">@<bdi>sodoku</bdi></a><br />
Hello,<br />
Yes your answer is correct, I have just found the answer just before you replied!!<br />
See attached screenshot.</p>
<p dir="auto"><img src="/assets/uploads/files/1609603158019-uiflow_json_decode-resized.png" alt="0_1609603120284_UIFlow_JSON_Decode.png" class=" img-fluid img-markdown" /><br />
Many thanks for the advice.<br />
Regards<br />
Phil</p>
]]></description><link>https://community.m5stack.com/post/11507</link><guid isPermaLink="true">https://community.m5stack.com/post/11507</guid><dc:creator><![CDATA[PhilG1300]]></dc:creator><pubDate>Sat, 02 Jan 2021 15:59:30 GMT</pubDate></item><item><title><![CDATA[Reply to Accessing decoded JSON array on Sat, 02 Jan 2021 15:35:43 GMT]]></title><description><![CDATA[<p dir="auto">You should be able to use the "get key in map" block from "map"<br />
<a href="https://docs.m5stack.com/#/en/uiflow/data_structure?id=map" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/#/en/uiflow/data_structure?id=map</a></p>
<p dir="auto">Get key location from map Decoded_Packet</p>
]]></description><link>https://community.m5stack.com/post/11506</link><guid isPermaLink="true">https://community.m5stack.com/post/11506</guid><dc:creator><![CDATA[sodoku]]></dc:creator><pubDate>Sat, 02 Jan 2021 15:35:43 GMT</pubDate></item></channel></rss>