<?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 array decoding]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">I'm looking for a way to decode a JSON response from HTTP2 block.<br />
I need to decode a JSON array: one of the json fields value is an array.</p>
<p dir="auto">I tried first decode JSON to string, one of the field is an json array - so I connected another JSON-decode block. <strong>PJSOCT output -&gt; PJROCT jtxt input</strong></p>
<p dir="auto">Unfortunately block is in error state:</p>
<pre><code>103 General input variable error
</code></pre>
<p dir="auto">But I think there is no output from the PJSOCT block - what is expected behaviour in such case?</p>
<p dir="auto">Regards<br />
Hubert</p>
]]></description><link>https://forum.rexygen.com/topic/86/json-array-decoding</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 13:36:49 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/86.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Jan 2020 12:22:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Json array decoding on Fri, 03 Jan 2020 18:12:51 GMT]]></title><description><![CDATA[<p dir="auto">Hi Hubert,</p>
<p dir="auto">thank you for your question. It would be much more easier to answer if you can share project files which shows the example of such JSON string and function block settings.</p>
<p dir="auto">If you want to access JSON array, just use "[x]" notation, i.e. weather[0].main (means field "main" in 1st item of "weather" array) - see "0302-04 OpenWeatherMap API" example.</p>
<p dir="auto">Hope it helps.</p>
<p dir="auto">Regards, Tomas</p>
]]></description><link>https://forum.rexygen.com/post/278</link><guid isPermaLink="true">https://forum.rexygen.com/post/278</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Fri, 03 Jan 2020 18:12:51 GMT</pubDate></item></channel></rss>