Hi there,
I am using UrlFetchApp to send a stringified JSON object to another script.
The doPost(e) on my receiving script returns:
"{parameter={value={schedule=true, hiring=false, dash=true, token=1a2b}, key=1234}, contextPath=, contentLength=137, queryString=, parameters={value=[{schedule=true, hiring=false, dash=true, token=1a2b}], key=[1234]}, postData=FileUpload}"
e.parameters.key and e.parameters.value return the respective values "1234" and "{schedule=true, hiring=false, dash=true, token=1a2b}, key=1234}"
When I attempt to return anything within e.parameter.value, I get "undefined". However, e.parameter.value[0] will return the characters within ".value" which tells me that the nested object within is being treated like a string.
Why does this happen and is there a work around (other than passing each nested variable as its own url parameter)?
Thanks,
Micah