Welcome .
You should use: web component + dictionary component
1-Read the guides on Json and Dictionary
2-Understand.
3-And make your blocks.
4-Test and verify the results.
5-If it doesn’t work, make changes and go back to the previous item.
0 — Basics
0.1 — What Is Dictionary
Dictionary is object structured like JSON, which is a standard to store dictionaries as text. It is a way to store information in an organized, easy-to-access manner. It stores a collection of pairs that consists of a key and the corresponding value. The key is a reference to the value, kind of like a variable where the variable name acts as a reference.
Dictionary in Kodular is a built-in block.
[image]
Object uses { bracket at the start, } at the end.
A…
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…
You can try using the block :
( and so learn …just a suggestion)
[keypath]
+
[makelist]
+
[stringname]
+
[foreach]
+
[lookuppairs2]
[sitenames]
One question: Will your Json always be like this?
date, date2, date3, date4, date5 …
daily, daily2, daily3, daily4, daily5…
Hello, I have a need in an application to consult an API where my client will enter the document number and this document may be linked to more than one contract and the API returns me a Json with all the contracts and their respective information, I need to take each contract number and play it in a listview.
I managed to do it with clients who have only one contract, but clients who have more than one contract, I still couldn’t understand how to go through the text and get this specific infor…
1 Like