TheLakshya
(Lakshya Pratap)
January 20, 2021, 7:28am
#1
Recently Kodular has removed the Json component but has added the Dictionaries.
The Dictionaries can be used to obtain data from a Json in a simple way.
Using the dictionaries you don’t need to use any Json extension.
First of all, dictionaries are not a component. That’s why you won’t find it in the Designer.
You will find it in the block section:
[imagen]
In this example we are going to obtain the data from the Api newsapi.org
The idea is to get something like this:
[Tutorial Json Ap…
Can anyone plz help me getting TITLE, IMAGE, SUMMARY, URL from the posts published on www.andro.cyou using the API URL https://andro.cyou/api/v1/posts
I want to create dynamic card view with the above things in a vertical scroll arrangement…exactly like what have been done in the GUIDE
BUT, i don’t know what changes i have to make in the blocks that i have exactly copied from the guide…
is your url correct and also show your blocks
TheLakshya
(Lakshya Pratap)
January 20, 2021, 7:41am
#3
**
@luv.ak.tech The blocks are exactly same as in the guide i just have changed the Web1 url to https://andro.cyou/api/v1/posts
and ya my url is correct
Why do you expect it to work? The json is completely different. You have to read the structure and understand how the data should be processed.
TheLakshya
(Lakshya Pratap)
January 20, 2021, 8:43am
#5
I know…but actually i dont have enough info about APIs dictionaries and list …also i don’t what is the use of INDEX in lists…
TheLakshya
(Lakshya Pratap)
January 20, 2021, 8:45am
#6
For example can u plz tell me if i want to get the SLUG value from the URL https://andro.cyou/api/v1/posts/60071cd7f49f7e6c9b6ce88b
then whatt should be the blocks to extract that…
download jsontools from here - JSONTools Extension
and do like this -
TheLakshya
(Lakshya Pratap)
January 20, 2021, 9:16am
#8
you are using GetIntValue you need to use GetStringValue
TheLakshya
(Lakshya Pratap)
January 20, 2021, 9:21am
#11
Ya…that was my mistake but now after correcting it .its returning blank value
luv.ak.tech
(Aarush Kumar)
January 20, 2021, 9:22am
#14
then try what @dora_paz mentioned
TheLakshya
(Lakshya Pratap)
January 20, 2021, 9:44am
#17
WHAT DO YOU MEAN BY IDK I didn’t get it,
dora_paz
(Dora)
January 20, 2021, 9:46am
#18
No need to shout ! Please it is not polite to use Caps in community. It means that he doesn’t know . Try to change global variable to create empty list
luv.ak.tech
(Aarush Kumar)
January 20, 2021, 9:47am
#19
why it is not working for you it worked for me
result -
TheLakshya
(Lakshya Pratap)
January 20, 2021, 9:54am
#20
Thanks…it worked but actually that was too basic for me and i want to create something like this: