How to Handle JSON Keys with Special Characters like $values in FlutterFlow?

Database & APIs
Resolved

I'm working on integrating an API in my FlutterFlow project that returns a JSON response with special characters in the keys, such as $values. The API response looks something like this:

    "$id": "1",
    "status": "OK",
    "data": {
        "$id": "2",
        "pageNumber": 1,
        "pageSize": 25,
        "totalPages": 0,
        "totalRecords": 0,
        "results": {
            "$id": "3",
            "$values": []
        }
    }

My goal is to access the $values array inside data.results by JSON path like $.data.results.$values but Iโ€™m facing issues due to the $ character in the key.

What have you tried so far?

I attempted to use [] \ to escape this character

Did you check FlutterFlow's Documentation for this topic?
No
1
3 replies