I have 5 categories, each category has 3 items.
I have the array:
var myArray = ["Item1", "Item2", "Item3"];
What is the easiest way to create a Json from it without hardcoding it ?
The array in production can have thousands of items.
I have 5 categories, each category has 3 items.
I have the array:
var myArray = ["Item1", "Item2", "Item3"];
What is the easiest way to create a Json from it without hardcoding it ?
The array in production can have thousands of items.