I’m using the component (Spinner) to return values from a .json file that is in my asset.
The values are returning correctly. But the symbols are coming together ([" "]) how do I take these signals and return just as strings.
below .json file
{
“string1”: “Hello, text in English”,
“string2”: “Choose your language:”,
“string3”: “Delete database”,
“string4”: “Go to tel 2”,
“string5”: “COMPONENTS SCREEN”,
“string6”: “Back Screen 1”,
“string7”:
[
“Car”,
“House”,
“Building”,
“Pool”,
“Bicycle”
],
“string8”: “I want to translate this text”
}
TianFeng081
(TianFengStudio)
January 6, 2021, 6:12pm
#2
Maybe change it to Elements?
I’ve tried but returns this error
TianFeng081
(TianFengStudio)
January 6, 2021, 6:16pm
#4
Convert it to json, not json text.
Use Json encode in Web component.
1 Like
Do you mean that instead of using the json file extension in .TXT I use the extension in .JSON?
TianFeng081
(TianFengStudio)
January 6, 2021, 6:23pm
#6
If yes, “[“Car”,“House”,“Building”,“Pool”,“Bicycle”]” this will be as text when you get it. U need to convert it to json to use it.
1 Like
TianFeng081
(TianFengStudio)
January 6, 2021, 6:25pm
#7
1 Like
Thanks
@TianFeng081
@Rogerio_Rios
They already gave me a north to follow.
As soon as I can solve it, I mark “Solution”
1 Like
Sorted out
I used the component web.JSON Text Decode
1 Like
system
(system)
Closed
February 5, 2021, 6:55pm
#12
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.