Ok. So I've finally figured out how to get a JSON Get request, but I'm having a hard time figuring out how to use the information I get back. I've got 9 items in the array, but I only care about 1 of the values. I'm trying to get the id: value and store it in a variable to use later. I know I currently have no attempt at doing the storing bit in the code - I've tried so many options, I reverted the code back to where it would at least get the array.
Here is the ajax code:
var childSection;
var url = "https://myurl.com";
$.ajax({
'async': true,
'type': "GET",
'global': false,
'dataType': 'JSON',
'data': JSON.stringify(childSection),
'contentType': "application/json",
'url': url,
'success': function (data) {
childSection = data;
return childSection;
}
dataobject, I thinkchildSection = data[0].idshould do the trick.