Hi i have a bunch of JSON data for mattresses. I can access my JSON easily using something like:
…but how do I go about accessing the same data for for this using a variable for the name of the mattress.(instead of having to write it explicitly eg ‘Purple_Original’) Eg…
this.appManagerScript.mattressData.brands.products.(THIS IS MY VARIABLE).info_text)
My variable is modified depending on user input.
There must be a way of inserting variables into JSON search queries no?