I’m using the API call to pull in this information and it works just fine. To pull it in, mine looks like this:
and the output looks like this:
My questions are about the json response:
- Since the ‘alert’ section won’t always be included in the response, is there an appropriate way to process it only when data exists (maybe an if statement to check to see if it exists before processing it).
- Since I wouldn’t know how many values for the ‘alert’ exist (today it is both wind and tornado) – how should I handle this to only process the correct number of ‘events’ that exist in the json file?
- Is there any way to insert a carriage return into the text?