# Parsing JSON "value" responses

**URL:** https://community.thunkable.com/t/parsing-json-value-responses/1107684
**Category:** Questions about Thunkable X
**Created:** [February 18, 2021, 7:22pm UTC](https://community.thunkable.com/t/parsing-json-value-responses/1107684 "2021-02-18T19:22:13Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rwplummer1yf4f](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@rwplummer1yf4f](https://community.thunkable.com/u/rwplummer1yf4f)
#### Post date: [February 18, 2021, 7:22pm UTC](https://community.thunkable.com/t/parsing-json-value-responses/1107684/1 "2021-02-18T19:22:13Z")

</div>

Hi everyone. I have an issue parsing a response from Firebase. I have taxi drivers who might miss jobs on the app while offline. When they return I want to look back through the jobs of the day to check the status of each one. If any show a status of new or declined I want to take some action and alert the driver.

The response I am getting appears to be a list of jobs and each job has a number of properties within it, including status and a jobID. So in the file attached here I get a response of 10 jobs with each job having 17 to 20 properties. Is this a list within a list or a flat file? I cant work it out.

I am currently using a count with loop to play with just a 3 or 4 results so things are more manageable. Does anyone know how to parse the attached JSON file to get the results I am after?  
My rather pathetic attempts at blocking this are included here. I have tried using Create Object from JSON and Json from Object as well.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/a/6a2d056623bf34b23cbf86b6f9edf5d5289dd10c.png)  
[response.txt](https://community.thunkable.com/uploads/short-url/q3lHRxF5hNintb81ZpMuoSm51SQ.txt) (5.0 KB)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 18, 2021, 7:54pm UTC](https://community.thunkable.com/t/parsing-json-value-responses/1107684/2 "2021-02-18T19:54:29Z")

</div>

See this quick project using your data.

I just selected two properties to show arbitrary  
[https://x.thunkable.com/projectPage/602ec2e70d7424001262ec68](https://x.thunkable.com/projectPage/602ec2e70d7424001262ec68)

Hope this can simplify the idea.

---

<div class="post-metadata">

### Author: ![rwplummer1yf4f](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@rwplummer1yf4f](https://community.thunkable.com/u/rwplummer1yf4f)
#### Post date: [February 18, 2021, 8:44pm UTC](https://community.thunkable.com/t/parsing-json-value-responses/1107684/3 "2021-02-18T20:44:31Z")

</div>

@muneer . Thank you so much. That has really helped. I was totally lost on how to do this. Am I able to grab a copy to keep for my records?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 18, 2021, 8:46pm UTC](https://community.thunkable.com/t/parsing-json-value-responses/1107684/4 "2021-02-18T20:46:10Z")

</div>

It’s yours. I did it because I feel this is easier than explaining in words.

Glad that it helped.

---

<div class="post-metadata">

### Author: ![rwplummer1yf4f](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@rwplummer1yf4f](https://community.thunkable.com/u/rwplummer1yf4f)
#### Post date: [February 18, 2021, 8:53pm UTC](https://community.thunkable.com/t/parsing-json-value-responses/1107684/5 "2021-02-18T20:53:48Z")

</div>

Thank you again. For my education I take it the response I have been getting is not two list as I thought but a result showing that the properties of a thing also have properties. Is that right?  
So this block

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/d/0d3b49b62652d321e27a04091bcd9cc29addd53a.png)  
reading from right to left takes the response. Gets the objects (Job318, 319 etc) and then gets each objects properties. If I am way off, dont worry about it. You have done more than enough…

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 18, 2021, 9:03pm UTC](https://community.thunkable.com/t/parsing-json-value-responses/1107684/6 "2021-02-18T21:03:10Z")

</div>

Yes you are right on your assumption. It is a list of JSON objects and each object has its own properties. So it is a list of objects, as you clearly said (Job318, Job319, …) and each of these objects have properties inside them and you need to cascade the `object block` in Thunkable walking in reverse which means the top most property, for example `Status` in the coding is the lower most property in the JSON response.

Feel free to inquire on anything that is not clear to you. If I don’t know it then there must be someone in the community who has better experience.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:29pm UTC](https://community.thunkable.com/t/parsing-json-value-responses/1107684/7 "2024-11-08T13:29:19Z")

</div>


