For example, the class from the previous section, you can create an instance and pass it to the method:

    Sending a JSON body

    With the above example the following JSON will be sent as the body of the request:

    The JSON itself can be customized however you want using .