Welcome! Log In Create A New Profile

Advanced

wduser: consuming a JSON webservice

Posted by harvey68 
wduser: consuming a JSON webservice
September 09, 2018 09:48AM
Autor: wduser

Link zum Beitrag: [27130.foren.mysnip.de]

Hi

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.

I need to import some currencies. The help gives me this: But stops
there:



h is httpRequest
h..Method = httpGet
h..URL =
"[apilayer.net];


r is restResponse = RESTSend(h)
info(r.content)



But how do I get this to a variant?

buffervar is Buffer = r.Content

( if I click on the buffervar in debug mode then I can select Json and I
see exactly what I want.


Regards
Arie: consuming a JSON webservice
September 09, 2018 09:49AM
Autor: Arie

Link zum Beitrag: [27130.foren.mysnip.de]

Hi, the JSONToVariant() function is your friend
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: