Return null strings in JSON Body - Api Calls

Database & APIs

Hello, I have defined several fields in JSON for an API call with a patch/put request. Many of them accept strings. If a transferred variable is null, the JSON writes, for example, "username": “null” instead of "username": null. This causes problems for the backend. Does anyone have any ideas on how to solve this? Currently, the only solution I can think of is to create a separate endpoint for each field in the body.

Example JSON Body:

How the request Body looks like:

Best regards,
Chris

What have you tried so far?

Tried setting Default value to null constant

Did you check FlutterFlow's Documentation for this topic?
Yes
2