Yeah to test I've just used JSON.stringify before ...
# suitescript
j
Yeah to test I've just used JSON.stringify before returning and that seems to have fixed the duplication issue. I shall use your example though as I want to use best practices.