Here is my key:value paired local json. I need to load and later I need to use for query. So, how can I to load and query local json data in Flutter Mobile App?
{
"currency.01": "United State USD",
"currency.17": "British Pound GBP",
"currency.33": "Euro EUR",
}
add your JSON file to the
pubspec.yaml
and then you can use
rootBundle
to load italso take a look at this full example and for querying convert your JSON data into a LIST and then you have a lot of search methods like the where method