I want to set response to JsonFormat with serverless.yml

I want to set response to JsonFormat with serverless.yml.
I want to receive a string or Json and convert it to Json format.
please tech me.