JSON Path String to Double

Hey,

I am almost done with my first FlutterFlow-Project. One issue I still need to fix:

I do make an API Call and store the data in an AppState called "apireturn" (DataType: json). Within the AppState I have a - next to several other datapoints - adatapoint called "$.fuel.plan_ramp". I can reference it successfully and show the data. So far so good.

But: I need to convert it. Output now is "123456" (Kilogramms) but I need to show it in tons (dividing by 1000) -> 123.

How can I do it? Formating not available as it is treated as a STRING, not a DOUBLE.

Thanks for your input!

Pierre

1
2 replies