NetSuite uses .toJSON to control the structure of ...
# suitescript
b
NetSuite uses .toJSON to control the structure of the object returned by JSON.stringify. They can change the structure of a search result and still have the same JSON representation
d
They implemented .toJSON on the search.Result object. Nice! What about the other way?
@battk ^^ ?
b
i dont think there is a convenient way to change the JSON back into a search result
👍 1