you could try `myJSON.replace(/\&/,'$amp;')`
# suitescript
s
you could try
myJSON.replace(/\&/,'$amp;')