JSON for API call

Database & APIs

Good day, everyone!

Does any of you know why Flutterflow encodes JSON into String in API calls? I have a sample below that I have created a JSON variable named "line", and when I try to pass some values to it, it requests the value to be correctly formatted in JSON, however, when I run the API call and check the body, we can see that it becomes a String by adding some backward slashes. Because of this, I am also getting an error from the endpoint that my "line_items" is incorrectly formatted.

What have you tried so far?

I have already tried making use of the "Create JSON map" function within Flutterflow, but it still converts it to String, adding those backward slash.

Did you check FlutterFlow's Documentation for this topic?
No
2
1 reply