# Trying to extract a nested list from a Web API

**URL:** https://community.thunkable.com/t/trying-to-extract-a-nested-list-from-a-web-api/2297877
**Category:** Web API's
**Tags:** design, beginner
**Created:** [February 27, 2023, 2:09am UTC](https://community.thunkable.com/t/trying-to-extract-a-nested-list-from-a-web-api/2297877 "2023-02-27T02:09:09Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![ankitoriginal](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@ankitoriginal](https://community.thunkable.com/u/ankitoriginal)
#### Post date: [February 27, 2023, 6:39am UTC](https://community.thunkable.com/t/trying-to-extract-a-nested-list-from-a-web-api/2297877/8 "2023-02-27T06:39:40Z")

</div>

To clarify, with this solution does that mean that every location item in the JSON array will now be in the location list we initialised? I’m trying to extract the data from each item in the list into the list viewer and I keep crashing the app. I’ve tried the following two methods and neither seem to work.

The first method crashes the app and restarts it, the second presents null when calling within the for loop. Is there a standard protocol for extracting the data correctly into a list viewer from a list?

 ![thunk5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/c/bca90cbe13d19084a7d1c36c25f7f9c5915e2b21.png)

 ![thunk6](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/2/922885c7255e7ffc6d2df78d67d64f73feef82d5.png)

---

_[View the full topic](https://community.thunkable.com/t/trying-to-extract-a-nested-list-from-a-web-api/2297877)._
