calling a url that returns JSON, how to process the JSON


I need to call this url,GBP&base=DKK

which will return this JSON


How should I do that in webMethods? I use version 10.3

If the url returned xml I could use this service pub.xml:loadXMLNode where I will be able to specify the url as an input variable.

Kind regards Mikael

Using pub.client:http and setting “useJSSE” = yes made it work and method = get.

first use pub.string:bytesToString service to convert “body/bytes” to String. Then use pub.json:jsonStringToDocument service to convert JSON string Document.

Also - you would not want to call URL with parameters in the URL and instead parameterise in your service.