<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>20 Oct 2016 10:56:51 Z</lastBuildDate><pubDate>21 Aug 2016 13:31:00 Z</pubDate><description>Anyone using the ..Member to retrieve JSON values?&#13;
My attempts have bee unsuccessful - any advice, suggestion appreciated.&#13;
&#13;
As a simplified example say I receive a JSON string containing 5 items [ { "ID":"65" }, { "ID":"67" }, { "ID":"71" }, { "ID":"74" }, { "ID":"76" } ]According to the Help for the ..Member property all I need to do is..... v is Variant = JSONToVariant(JSON) FOR EACH x OF v..Member Trace("The member " + x..Name + " has the value " + x..Value) ENDLine 1 is OK - the debugger shows 'v' as being 'an array of 5 variant'&#13;
Double clicking this shows a 5 element array with the correct values.&#13;
&#13;
Line 2 however throws the error 'The variant is not an object'&#13;
&#13;
Question is - what needs to be done to make the variable seen as an object?&#13;
I have tried declaring it locally in the procedure, global to the window, even global to the application - all fail with the same error.&#13;
&#13;
If I declare a structure containing 'ID' and an array for this this structure then bu using&#13;
MyArray&lt;=v fills the array with the 5 elements as expected.&#13;
So not the end of the world - it just seemed that this would be a simpler way of achieving the same result</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property/read.awp</link><title>JSON..Member property</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>contact</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-60056/read.awp</comments><pubDate>20 Oct 2016 10:56:51 Z</pubDate><description>Hi Alexandre, &#13;
thank you for the tip, I've tested it and it's missing [i] in the v[i]..membre statment if I'm not wrong, &#13;
&#13;
th…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-60056/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-60056/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property/read.awp">JSON..Member property</source><title>Re: JSON..Member property</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-59170/read.awp</comments><pubDate>22 Aug 2016 15:55:00 Z</pubDate><description>Guys&#13;
Thank you very much.&#13;
As you both no doubt noticed I let myself fall into the trap of attempting to use something without …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-59170/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-59170/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property/read.awp">JSON..Member property</source><title>Re: JSON..Member property</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-59173/read.awp</comments><pubDate>22 Aug 2016 15:17:00 Z</pubDate><description>Hi Derekt,&#13;
&#13;
Variants are tricky to use. Your example is composed of an array of variants. So you must consider that array firs…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-59173/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-59173/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property/read.awp">JSON..Member property</source><title>Re: JSON..Member property</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-59163/read.awp</comments><pubDate>21 Aug 2016 17:08:00 Z</pubDate><description>Looks like it is seeing it as an array of variants instead of as a variant.&#13;
&#13;
This works for me:&#13;
sJSon is ANSI string = [ { "I…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-59163/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property-59163/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/59159-json-member-property/read.awp">JSON..Member property</source><title>Re: JSON..Member property</title></item></channel></rss>
