Json help app development

Hey all is it possible to use “if contains text” function through json somehow if yes then please tell me

The function ‘JSON text decode’ from the Web component (Not Web Viewer) will convert the JSON string into a list that you can then use the ‘is in list’ function on

2 Likes

But I am making an app using speech recognition

I have created a bunch of questions with keywords in json

@MegaTheProtogen I want that if the question is not there in the json data the it would look for a specific work from the speech recognition result

you can use dictionary block. there was a block that is key in the dictionary? you can use that block

1 Like

Yes.

  1. Convert JSON to list of pairs.

dictionaries_dict_to_alist

  1. Convert the list of pairs to a text

  1. Outcome

It’s a very inefficent way to deal with your problem, but simple. You can also query with dictionaries component trough your JSON file, but it requires good database structure and some logic.

2 Likes

You must your blocks first that you tried. And may you please post your JSON data so we can look into its structure.