API results ‘Json’ → ‘data type’ or ‘predefined path’ problem. Not Working at all.

Database & APIs

Hi. I’ve been doing everything I can but need help!

# Situation

(1) I have API call for supabase data. It works fine at ‘Response&Test’ screen.

(2) But, there are ‘datetime’ type data which I want to show as ‘relative’ format.

(3) To express ‘datetime’ data as ‘relative’ format, I’ve done followings.

What have you tried so far?

# What have done 

 

1) JSON path : works well, but not useful

- First, I just used API results through ‘JSON path’ (ie. $.created_at)

- It shows “yyyy-MM-dd HH:mm:ss” format, so not useful

 

2) 'JSON path' result 'String' → custom function → datetime format : grey screen

- I made simple custom function which convert 'string to datetime' and it works well in 'test function'

- But when i input the json result as a variable it returns grey screen like below.

 

3) JSON → Datatype : grey screen

- Then I parsed Json to ‘data type’ and used ‘Data Structure Field’.

- It didn’t work. It shows only grey area. (All the grey screens are same)

- Not datetime type data only. All the data using this method had the same result.

- Not ‘generating dynamic children’ only. When I took it to normal query, it didn’t work too.

 

4) JSON Predefined Path ‘all’ → JSON path : grey screen too.

- Some posts (Dynamic children from API call going weird (flutterflow.io)) recommend to use predefined path, but not working. There was grey area too.

 

Can someone please tell me what I did wrong and what I should do? I would appreciate it. Thanks in advance. 

 

Did you check FlutterFlow's Documentation for this topic?
Yes
1
6 replies