title: Flutter Json with array of strings into Futurebuilder
body: <p>So I have a JSON with an array of Strings. Can someone please tell me how to display the username of every object in a future builder with a listview.builder. </p>
  
  <p>I have looked everywhere and can't seem to find any good solutions.</p>
  
  <p>This is the JSON Tree:</p>
  
  <pre><code>{
      "id": 81,
      "users": [
          {
              "username": "hugo",
              "fullname": "Hugo Johnsson"
          },
          {
              "username": "studentone",
              "fullname": "Student One"
          }
      ],
      "title": "test med teacher chat",
      "description": "This project does not have a description.",
      "subject": "No subject",
      "deadline": "2019-01-06",
      "days_left": "91 days ago",
      "overview_requests": [
          {
              "id": 28,
              "user": {
                  "username": "hugo",
                  "fullname": "Hugo Johnsson"
              },
              "group": 81
          }
      ]
  },
  </code></pre>
  
  <p>This is the Project Class:</p>
  
  <pre><code>class Project {
    final int id;
    final String title;
    final String description;
    final String deadline;
    final String subject;
    final String days_left;
    final List&lt;USER&gt; users;
  
   Project(
    this.id,
    this.title,
    this.description,
    this.deadline,
    this.subject,
    this.days_left,
    this.users
    );
  }
  
  class USER {
    final String username;
    final String fullname;
  
  USER(
    this.username,
    this.fullname);
   }
  </code></pre>
  
  <p>What I have tried: I don't know how to make this loop for the "users" to be able to get the names out.</p>
  
  <pre><code>      Future&lt;List&lt;Project&gt;&gt; _getProjects() async {
    var data = await http.get(TheAdress);
      var jsonData = json.decode(data.body);
  
      List&lt;Project&gt; allProjects = [];
  
      for (var JData in jsonData) {
       Project project = Project(
            JData["id"],
            JData["title"],
            JData["description"],
            JData["deadline"],
            JData["subject"],
            JData["days_left"],
            JData["users"]);
  
        allProjects.add(project);
      }
  
      return allProjects;
    }
  </code></pre>
  
  <p>And then abviously running that through a futurebuilder in the ui</p>
  
  <pre><code>FutureBuilder(
        future: _getProjects(),
        builder: (BuildContext context, AsyncSnapshot snapshot ) {
          if (snapshot.data == null){
            return Container(
              child: Center(
                child: CircularProgressIndicator(),
              ),
            );
          }
          else return ListView.builder(
            itemCount: snapshot.data.length,
            itemBuilder: (BuildContext context, int index) {
              return ListTile(
                title: Text(snapshot.data[index].users[index].username),
              );
            }
          );
        }
      ),
  </code></pre>