Json Operators
If you have a json and you want to access value of any attribute of it, than it is not directly accessible with dot operator(.), for that you have to use jsonGet() method.
It takes two arguments both are required.
Argument 1 : The entire json (on digia dashboard you can access it through "response.body"
Argument 2 : The value you want to access from the json. \
Let's understand it through an example.
1
Add your Api in Digia Studio
2
Add a Future Builder Widget
configure your future builder widget
3
Fetch your data using JsonGet Operator
If you want to access value of "id" for first element in users array. Than we can write something like this.
Last updated