title: Pick data from a json in flutter with ListView.buider
body: <p>I created this file json, I fetch the data like &quot;displayName&quot; and &quot;age&quot;, also i want see on screen the data from the sublist workout. How can I do and if possibile put this data in a profile page?
  this is the Json file i make for my little test db:</p>
  <pre><code>[
    {
      &quot;displayName&quot;: &quot;mario&quot;,
      &quot;age&quot;: 27,
      &quot;peso&quot;: 85,
      &quot;altezza&quot;: 175,
      &quot;workout&quot;: [
        {
          &quot;nomeworkout&quot;: &quot;Running&quot;
        },
        {
          &quot;nomeworkout&quot;: &quot;Brucia Grassi&quot;
        }
      ]
    },
    {
      &quot;displayName&quot;: &quot;jessica&quot;,
      &quot;age&quot;: 28,
      &quot;peso&quot;: 85,
      &quot;altezza&quot;: 175,
      &quot;workout&quot;: [
        {
          &quot;nomeworkout&quot;: &quot;Spinning&quot;
        },
        {
          &quot;nomeworkout&quot;: &quot;Gambe&quot;
        }
      ]
    },
    {
      &quot;displayName&quot;: &quot;Pedro&quot;,
      &quot;age&quot;: 29,
      &quot;peso&quot;: 85,
      &quot;altezza&quot;: 175,
      &quot;workout&quot;: [
        {
          &quot;nomeworkout&quot;: &quot;Potenziamento&quot;
        }
      ]
    }
  ]
  </code></pre>
  <p>with this page, I created a simple ListView.builder to display the list of items such as &quot;displayName&quot;, &quot;age&quot;, &quot;weight&quot;; but I didn't understand how to get the data from the internal &quot;workout&quot; list:</p>
  <pre><code>import 'dart:convert';
  import 'package:fitness_app/trainerPage.dart';
  import 'package:flutter/material.dart';
  
  class HomePage extends StatefulWidget {
    @override
    _HomePageState createState() =&gt; _HomePageState();
  }
  
  class _HomePageState extends State&lt;HomePage&gt; {
    List data;
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: SafeArea(
          child: FutureBuilder(
            future:
                DefaultAssetBundle.of(context).loadString('assets/jsonDb.json'),
            builder: (context, snapshot) {
              var data = JsonDecoder().convert(snapshot.data.toString());
              return ListView.builder(
                itemCount: data == null ? 0 : data.length,
                itemBuilder: (context, index) {
                  return InkWell(
                    onTap: () {
                      Navigator.push(context,
                          MaterialPageRoute(builder: (context) =&gt; TrainerPage()));
                    },
                    child: Container(
                      padding: EdgeInsets.all(10),
                      child: Row(
                        children: &lt;Widget&gt;[
                          Text(data[index]['displayName']),
                          Text(data[index]['age'].toString()),
                        ],
                      ),
                    ),
                  );
                },
              );
            },
          ),
        ),
      );
    }
  }
  
  </code></pre>