I just read it quickly on my phone, dont have my laptop with me but hope it will help.
I think you almost got it, have you tried to extract the property “nm_campeonato” from the object response using the pink block called get property of object?
This is not typically how you parse JSON in Thunkable. See this video I made that explains the process: API JSON Tutorial (Video)
I can help you with this if you’re able to post the full JSON response as text here.
Your method would potentially work but you would have to use several text blocks to get the subststring after your property name by creating a list based on the delimiter “,” and then searching for “:” and getting the text after that.
@sammycri The problem is with the JSON, the one you shared above is not a valid format. I can help but let’s have a closer conversation. Could you send me a message on my LinkedIn?
It would be best to post your JSON as text and include a screenshot of the blocks you are using to parse it. It was suggested that the blink was caused by invalid JSON or invalid parsing.
Again, without the full JSON response posted here as text, I really can’t help you. Especially when you hide the URL because that’s what’s going to determine what kind of response you get from the API server. Which endpoint are you using?
You can get the response by assigning the green response block to a Text Input’s Text (set Text Input’s text to [response]) and then after live testing the project, copy the response from the text input and paste it into a post here.
This is part of the JSON response (it doesn’t allow me to show the rest of the text here):
{
status: “ok”,
totalResults: 38,
articles:[
{
source:{
id: null,
name: “The Guardian”},
author: “Guardian staff reporter”,
title: “China stops publishing daily Covid figures amid reports of explosion in cases - The Guardian”,
description: “The National Health Commission’s decision comes as the country’s health system faces enormous strain after the sudden end to the zero-Covid policy”,
content: “Chinas National Health Commission (NHC) has stopped publishing daily Covid-19 data, amid concerns about the reliability of the figures after infections exploded in the wake of an abrupt easing of tou… [+2226 chars]”},
It looks like you are probably parsing the JSON correctly. To know for sure, I’d have to see the whole JSON response. But one thing you can do is to place Wait blocks after each of the Set blocks and see if the Images and Label’s are getting set correctly. If you slow things down, you might have a better idea what’s going on.