Uipath json python syntax

Hi,
I have a question. I want to translate a little piece of pythoncode to a body property in a HHTP request in UiPath. What’s the syntax for this? The original piece of code is:
{“format”: “csv”} and I want to have the code for the HHTP request–>Properties–>Options–>Body in UiPath. UiPath.WebAPI.Activities version is 1.18.0.
Thanks a lot, Coen

we can use within the body field

"{""format"": ""csv""}"

Thank you Peter. We tried your solution already and it keeps saying: Internal server error.
When we use Get (without a body it works). We also used escape characters etc.
{
“meta”: {
“resourceType”: “Error”
},
“code”: “500”,
“description”: “Internal server error”,
“reason”: “”
}

it can be have a relationship or not

Origin was asked how to provide a JSON snippet within the body field. This we answered:

"{""format"": ""csv""}"

we introduced the surrounding doublequotes for the inner doublequotes
all in one line

But we dont know your Endpoint API and Constraints. Maybe you can cross-check the API / Docu twice

It works by putting the text in a textfile. The output (read text file) variable can be used in the body of the “http request” activity and that works.

feel free to share with us the text file

UPD1:
as alternate we can also do:
grafik

grafik