Action Script fromJSON ,Value null error
Posted: 25 Feb 2020 10:20
Hi.
I am a new user and have a little problem.
I make a http request and get a json file which I collect in response variable.
Used a debug dialogue to verify that I did get a valid Json response.Status 200.Fine.
Next I did
data=fromJSON(response);url=data[0]['url'];
Because I want first url from 3 URLs it sent.
But when I execute it gives the error I posted screenshot.
Also I later plan to use the url I receive from json parsing script to download pic.And again I guess if I put url variable in "download" url flow it will give no protocol used error.Since I must use http or https in the url box.So my next question is how to use the url I extract from json parsing to download pic.
Many thanks.Hope I haven't made the issue confusing.
I am a new user and have a little problem.
I make a http request and get a json file which I collect in response variable.
Used a debug dialogue to verify that I did get a valid Json response.Status 200.Fine.
Next I did
data=fromJSON(response);url=data[0]['url'];
Because I want first url from 3 URLs it sent.
But when I execute it gives the error I posted screenshot.
Also I later plan to use the url I receive from json parsing script to download pic.And again I guess if I put url variable in "download" url flow it will give no protocol used error.Since I must use http or https in the url box.So my next question is how to use the url I extract from json parsing to download pic.
Many thanks.Hope I haven't made the issue confusing.