Builds a JSON response structure out of its components: HTTP status, headers, and JSON data.
Example:
{<br>
"status": 200, "headers": {<br>
"Content-Type": "text/plain"<br>
},<br>
"body": "{\"result\": \"OK\"}"<br>
}@1<br>
```<br>
---
__Keywords__: construct, build, response, http, API, text, REST, JSON
### Input ports
* __data__: ` any `
Receives the JSON body of the response.<br>
<br>
Example: {"result": "OK"}<br>
* __status__: ` number `
Receives a HTTP status code.<br>
<br>
Example: `200`<br>
* __headers__: ` {string: string} `
Receives a record of HTTP headers.<br>
<br>
Example:<br>
```<br>
{"Contanet-Type": "text/plain"}<br>
```<br>
### Output ports
* __response__:
```
{"status": number, "headers": {string: string}, "body": string}
```
[Inherited from port `response` of `response builder`] <br>
Sends the constructed HTTP response.<br>
* __error__: ` {"error": string} `
Sends error when JSON serialization failed.<br>