Skip to main content
Question

Extracting URLs from a response body from HTTPCaller?


a_ericsson
Contributor
Forum|alt.badge.img+3

Hi!

I'm trying to extract parts of a response body from a HTTPCaller. I've read some previous threads on the topic but I just end up more confused. The response body looks something like this:

 

[{"href":"https://download-geotorget.lantmateriet.se/download/99d120aa-9532-43a9-a5a7-6128b333bc88/files/root/militartomrade_kn0125.zip?q=t-CwjGgGH....1Vl4dA==","title":"militartomrade_kn0125.zip","type":"application/octet-stream","length":3792,"displaySize":"3,7 kB"}, {"href":"https://download-geotorget.lantmateriet.se/download/99d120aa-9532-43a9-a5a7-6128b333bc88/files/root/hojd_kn0125.zip?q=t-CwjGgGHQJjXdA1styBEV1B.... ]

 

And so on. It goes on like that, so I shortened it down. The parts I'm trying to 'extract' are several URLs, and I'm looking to create attributes from them, in order to download the zip-files they point to. Does anybody have a solution to this?

 

You might have noticed by now that I'm quite lost in terms of technical lingo and so on, any help is appreciated. Cheers!

 

/Alex

2 replies

david_r
Evangelist
  • August 11, 2022

You can consider using the JSONFragmenter for this.

image


a_ericsson
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • August 11, 2022
david_r wrote:

You can consider using the JSONFragmenter for this.

image

Thanks David, I'll see if I can make some progress using this! :)

 

/Alex


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings