javanesse
(Javanesse)
#1
hello,
i really noob in here so i have a question about json things
i have this json code :
{“cat”: { “id”: 1, “name”: “joshep”}}
currently i’ve been using JsonUtils as my extension.
the question is, i want to only show the word “Joshep” whenever im clicking a button?
thank you
There is no need to use extension.
If only have the Json string, here is what you do:
- Find Json decode in the Web component.
- Put the text in the slot
- Find list of pairs to dictionary and put it to the json decode.
This way you can make it to a dictionary.
Then, use the get value by key path.
Key path = make a list (cat name)
Dictionary = the blocks that I mentioned just now
If not found, just leave it.
1 Like
javanesse
(Javanesse)
#3
got it, thank you so much.
mark as solved.
1 Like
Can you please explain it in blocks?
system
(system)
Closed
#6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.