# reqwest.json ## Function Set the JSON request body. ## Syntax ```bt reqwest(url).json(value) ``` ## Parameters | Parameters | Type | Required | Default value | Description | | ------ | ------ | ------ | ------ | ------ | | value | Any | No | Null | The BT value to convert to JSON. | ## Return value | Type | Description | | ------ | ------ | | Reqwest | Returns the new request builder. | ## Example ```bt request = reqwest('https://example.com').method('POST').json({name: 'BT'}) result = type(request) // Output: Reqwest print result ``` ## Notes - BT Array/Object is converted to JSON Array/Object; other library objects are written to JSON as strings. - Body, json, form, and multipart will all set the request body; the last request body set in the same request will take effect.