# What I need to do decode this json?

**URL:** <https://community.thunkable.com/t/what-i-need-to-do-decode-this-json/1146183>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [March 5, 2021, 4:14pm UTC](https://community.thunkable.com/t/what-i-need-to-do-decode-this-json/1146183 "2021-03-05T16:14:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wagnersantos.ufso3w](https://avatars.discourse-cdn.com/v4/letter/w/f9ae1b/32.png) [@wagnersantos.ufso3w](https://community.thunkable.com/u/wagnersantos.ufso3w)\
**Post date:** [March 5, 2021, 4:14pm UTC](https://community.thunkable.com/t/what-i-need-to-do-decode-this-json/1146183/1 "2021-03-05T16:14:24Z")

</div>

I already tested if RESPONSE is really my JSON. when i run the project on this page it gives error, what to do to save the homeTeam information from the fullTime from score?

 ![Horário](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/4/c49d4d749651d4b0a4fdc7439dd636db34016646.png)

{  
“head2head”: {  
“numberOfMatches”: 1,  
“totalGoals”: 2,  
“homeTeam”: {  
“id”: 507,  
“name”: “FC Paços de Ferreira”,  
“wins”: 0,  
“draws”: 1,  
“losses”: 0  
},  
“awayTeam”: {  
“id”: 5529,  
“name”: “CD Nacional”,  
“wins”: 0,  
“draws”: 1,  
“losses”: 0  
}  
},  
“match”: {  
“id”: 310783,  
“competition”: {  
“id”: 2017,  
“name”: “Primeira Liga”,  
“area”: {  
“name”: “Portugal”,  
“code”: “PRT”,  
“ensignUrl”: “[https://upload.wikimedia.org/wikipedia/commons/5/5c/Flag\_of\_Portugal.svg](https://upload.wikimedia.org/wikipedia/commons/5/5c/Flag_of_Portugal.svg)”  
}  
},  
“season”: {  
“id”: 644,  
“startDate”: “2020-09-20”,  
“endDate”: “2021-05-19”,  
“currentMatchday”: 22,  
“winner”: null  
},  
“utcDate”: “2021-03-05T18:30:00Z”,  
“status”: “SCHEDULED”,  
“venue”: “Estádio da Capital do Móvel”,  
“matchday”: 22,  
“stage”: “REGULAR\_SEASON”,  
“group”: “Regular Season”,  
“lastUpdated”: “2021-03-04T00:00:18Z”,  
“odds”: {  
“msg”: “Activate Odds-Package in User-Panel to retrieve odds.”  
},  
“score”: {  
“winner”: null,  
“duration”: “REGULAR”,  
“fullTime”: {  
“homeTeam”: null,  
“awayTeam”: null  
},  
“halfTime”: {  
“homeTeam”: null,  
“awayTeam”: null  
},  
“extraTime”: {  
“homeTeam”: null,  
“awayTeam”: null  
},  
“penalties”: {  
“homeTeam”: null,  
“awayTeam”: null  
}  
},  
“homeTeam”: {  
“id”: 507,  
“name”: “FC Paços de Ferreira”  
},  
“awayTeam”: {  
“id”: 5529,  
“name”: “CD Nacional”  
},  
“referees”:   
}  
}

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 5, 2021, 5:24pm UTC](https://community.thunkable.com/t/what-i-need-to-do-decode-this-json/1146183/2 "2021-03-05T17:24:22Z")

</div>

Your blocks look correct but it’s hard for me to tell because the JSON you posted isn’t complete and I can’t format it in an easier-to-read way. Can you post the full JSON response? It seems like it’s maybe missing a few characters.

The problem might be that you’re getting a “null” response from the API server for that value. Try getting a value that exists and see if that works. For example, object–\>score–\>duration.

Also, you need to check the green “error” blocks by adding them to a label. What is the value of each error block when you run that code?

Have you tried the Web API Get block by itself without the block above/around it?

---

<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:** [March 5, 2021, 6:42pm UTC](https://community.thunkable.com/t/what-i-need-to-do-decode-this-json/1146183/3 "2021-03-05T18:42:48Z")

</div>

In the JSON presented score-\>fullTime-\>homeTeam is **null** which will result in an error.

---

<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/what-i-need-to-do-decode-this-json/1146183/4 "2024-11-08T13:29:01Z")

</div>


