<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>15 Oct 2017 21:29:00 Z</lastBuildDate><pubDate>15 Oct 2017 02:07:00 Z</pubDate><description>Hi,&#13;
&#13;
I'm trying to get a handle on how to parse a JSON data payload. I'm able to use JSONToVariant to convert payload to JSON and then VariantToJSON to convert back into JSON and this seems to confirm that the payload stays in tact but I'm having problems figuring out how to deal with a JSON structure that is multi -tiered&#13;
&#13;
Below is an example file. How would I navigate down to the "itinerary_days" section and then loop through the individual days?&#13;
&#13;
There seems to be a lot more capabilities in WD for moving around an XML file than there is for JSON but maybe I'm missing something?&#13;
&#13;
{&#13;
"id":540,&#13;
"title":"14-Day Ultimate Namibia Safari",&#13;
&#13;
"itinerary_days": [&#13;
&#13;
{&#13;
"DayNbr":1,&#13;
"Title":"Day 1"&#13;
},{&#13;
"DayNbr":2,&#13;
"Title":"Day 2"&#13;
},{&#13;
"DayNbr":3,&#13;
"Title":"Day 3"&#13;
},{&#13;
"DayNbr":4,&#13;
"Title":"Day 4"&#13;
},{&#13;
"DayNbr":5,&#13;
"Title":"Day 5"&#13;
},{&#13;
"DayNbr":6,&#13;
"Title":"Day 6"&#13;
},{&#13;
"DayNbr":7,&#13;
"Title":"Day 7"&#13;
},{&#13;
"DayNbr":8,&#13;
"Title":"Day 8"&#13;
},{&#13;
"DayNbr":9,&#13;
"Title":"Day 9"&#13;
},{&#13;
"DayNbr":10,&#13;
"Title":"Day 10"&#13;
},{&#13;
"DayNbr":11,&#13;
"Title":"Day 11"&#13;
},{&#13;
"DayNbr":12,&#13;
"Title":"Day 12"&#13;
},{&#13;
"DayNbr":13,&#13;
"Title":"Day 13"&#13;
},{&#13;
"DayNbr":14,&#13;
"Title":"Day 14"&#13;
}&#13;
]&#13;
}</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json/read.awp</link><title>Parsing Json</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62949/read.awp</comments><pubDate>15 Oct 2017 21:29:00 Z</pubDate><description>Quote&#13;
Alen U.&#13;
&#13;
Hi Steve,&#13;
&#13;
here is solution&#13;
&#13;
&#13;
sText is ANSI string=fLoadText("c:\	emp\jsontest.json.good.txt")&#13;
&#13;
vItin i…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62949/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62949/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json/read.awp">Parsing Json</source><title>Re: Parsing Json</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62948/read.awp</comments><pubDate>15 Oct 2017 21:02:00 Z</pubDate><description>Hi Steve,&#13;
here is solution&#13;
sText is ANSI string=fLoadText("c:\ emp\jsontest.json.good.txt") vItin is Variant=JSONToVariant(sTe…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62948/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62948/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json/read.awp">Parsing Json</source><title>Re: Parsing Json</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62947/read.awp</comments><pubDate>15 Oct 2017 20:04:00 Z</pubDate><description>Hi Fabrice,&#13;
&#13;
I've gotten far enough along to see that there are 14 elements within the variant member "itinerary_days" but I'm…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62947/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62947/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json/read.awp">Parsing Json</source><title>Re: Parsing Json</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62946/read.awp</comments><pubDate>15 Oct 2017 13:41:00 Z</pubDate><description>Hi Steve,&#13;
&#13;
If I remember correctly, you just do a for each loop inside a for each loop for each sublevel.&#13;
&#13;
best regards</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62946/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json-62946/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62944-parsing-json/read.awp">Parsing Json</source><title>Re: Parsing Json</title></item></channel></rss>
