Hello,
I would like to use a JSON in my application, but unfortunately I don’t know how I saw other people ask the same question, but I couldn’t understand people’s answers,
Can you help me ?
Thank you in advance,
Rogerio_Rios
(Professional Support)
March 5, 2021, 2:14pm
#2
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 actually object JSON. Therefore, you have to know the basics of JSON. It is a way to store information in an organized, easy-to-access manner. It is formed with a key, and a value. It is called a pair. It uses a key to call the value. If you still don’t understand, search on Google for more information.
Dictionary in Kodular is a built-in block.
[image]
Object uses { bracket at the start, } at the end.
Colon is between the key and the value. C…
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
Thank you very much for your answer.
1 Like
system
(system)
Closed
April 4, 2021, 2:26pm
#4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.