<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>8 Aug 2018 12:12:00 Z</lastBuildDate><pubDate>8 Aug 2018 11:52:00 Z</pubDate><description>Hi&#13;
&#13;
I am trying to consume a webservice witch returns json…. Well I am a bit stuck. I can not get the return string to convert to a variant.&#13;
&#13;
I need to import some currencies. The help gives me this: But stops there:&#13;
&#13;
h is httpRequest h..Method = httpGet h..URL = "http://apilayer.net/api/live?access_key=xxxxxxxc601fc79c4fa3a" r is restResponse = RESTSend(h) info(r.content)&#13;
But how do I get this to a variant?&#13;
&#13;
buffervar is Buffer = r.Content&#13;
&#13;
( if I click on the buffervar in debug mode then I can select Json and I see exactly what I want.&#13;
&#13;
&#13;
regards&#13;
&#13;
&#13;
&#13;
&#13;
&#13;
&#13;
&#13;
Regards</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66543-consuminga-json-webservice/read.awp</link><title>consuminga json webservice</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/66543-consuminga-json-webservice-66546/read.awp</comments><pubDate>8 Aug 2018 12:12:00 Z</pubDate><description>Hi, the JSONToVariant() function is your friend</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66543-consuminga-json-webservice-66546/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66543-consuminga-json-webservice-66546/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66543-consuminga-json-webservice/read.awp">consuminga json webservice</source><title>Re: consuminga json webservice</title></item></channel></rss>
