So I have a CustomObject and an array containing a number of them.
Right now, when I say res.json(myArray), I get a standard jsonification of my CustomObject, i.e. field1:value, field2:value, ....
What I can not figure out is how to make a custom jsonification of my CustomObject, such as I only want to return a subset of the parameters.
What functions do I have to customize? In CustomObject only?
res.json? If you are in a node.js environment, you might want to tag your question with nodejs