MTNathan
07/02/2021, 7:46 PMcontext.response.write()
) but NetSuite has decided to append some html comments to the end of the stringified object, which is screwing up the parsing of said object. The comments are the type of thing that you'd see at the bottom of any NetSuite page if you viewed the source, like <!-- 415 s: 2% #17 cache: 0% #1 -->
and <!-- Not logging slowest SQL -->
. Does anyone have any suggestions for forcing the Suitelet to stick to exactly what I'm asking it to return/write back and not append those comments?battk
07/02/2021, 7:59 PMMTNathan
07/02/2021, 7:59 PMcontext.response.setHeader()
to set the Content-Type
appropriately (in this case, application/json
).MTNathan
07/02/2021, 7:59 PM