I was piggy backing on the code above trying to adapt it but that didn’t work as it was/is splitting (obviously at <br>) and the output of the split logic does not match my data.
try making sure you data type is json.. if that doesnt work you will have to use split on a certain charcter and use debugging to figure out whice elements of the array contain the data you nmeed
def params = [
uri: "https://mytotalconnectcomfort.com/portal/Device/CheckDataSession/${settings.honeywelldevice}",
headers: [
'Accept': '/',
'DNT': '1',
'Cache': 'false',
'dataType': 'json',
'Accept-Encoding': 'plain',
'Cache-Control': 'max-age=0',
'Accept-Language': 'en-US,en,q=0.8',
'Connection': 'keep-alive',
'Referer': 'Honeywell Home - My Total Connect Comfort',
'X-Requested-With': 'XMLHttpRequest',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36',
'Cookie': device.data.cookiess
],
using split i would split on the colon and then agaion maybe on blank to isolate you stuff
in case you are performing a http request, make sure you set contentType: "application/json". Then resp.data already contains the "json object" with data.