This is a shortcut for creating application/json responses. Converts data to JSON and sets the Content-Type header.
application/json
data
Content-Type
Optional
This is a shortcut for creating
application/jsonresponses. Convertsdatato JSON and sets theContent-Typeheader.