I'm trying to return a JSON object from Azure Function, and this examples, I mean, examples where response creation performing through context.res not working at all.
context.res = {
body: {"name": "JSON STATHAM"}, //No. No mistake.
contentType: 'application/json'
};
Why?
Only through context.done it's working if passed as a second parameter.