Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to get a JSON response ?

Not applicable

Hi, I am getting string response of payload, while hitting a lambda function. I have used "resp.end(data.payload)".

If I use "res.json(JSON.parse(data.Payload))" it shows JSON object not found something like that. Please provide me with some example to get the JSON response and the necessary modules to be included.

0 1 1,322
1 REPLY 1