Spinner Returning values from a Json file

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. :innocent:

Screenshot_1

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”
}

Maybe change it to Elements?

I’ve tried but returns this error

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?

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

Try to use this component’s block to convert

https://docs.kodular.io/components/connectivity/web/#json-text-decode

1 Like

3 Likes

Solution! Haha

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.