TheSky
(OSD)
February 12, 2022, 3:43pm
#1
Hi, there must be a simple way to get spacing in a text. I do very complicated things. Please help me.
Text;
{“one”:{“usd”:0.0016147,“usd_market_cap”:0.0,“usd_24h_vol”:602837.6388764079,“usd_24h_change”:-4.940897406932138}}
I want ;
0.0016147
I am sharing the blocks I made. This is how it works but is there an easier way? So, I just want to get the range 15 to 26 of a text.
TheSky:
usd
Try dictionary method to get value for the key
1 Like
dora_paz
(Dora)
February 12, 2022, 4:21pm
#3
Use format as decimal to return the whole value for example
1 Like
TheSky
(OSD)
February 12, 2022, 4:28pm
#4
Thanks for your answer but I didn’t get the same result. It shows “Not Found”. Why could it be?
dora_paz
(Dora)
February 12, 2022, 4:30pm
#5
Do you get response from an api?
TheSky
(OSD)
February 12, 2022, 4:31pm
#6
The reson is, you have given me the result so i used in to the variable… if you are getting it in from api means, you must use web component, and the response only you have to store into the variable and do the rest… remaining are same
2 Likes
TheSky
(OSD)
February 12, 2022, 5:02pm
#9
Yeah that’s it. It really worked for me. Thank you so much.
1 Like
system
(system)
Closed
March 14, 2022, 5:03pm
#10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.