I want to be able to create and object like this
{'someKey':
[{'someSubKey1': 'value1'},
{'someSubKey2': 'value2'},
{'someSubKey3': 'value3'}]
}
I tried a lot but I think I'm missing something
first of all I created an array and pushed the elements, then I did a JSON parse and finally a join (","), but the result wasn't the expected.
Some help?
someSubKey1,someSubKey2, etc all be part of the same object? I recommend to read a tutorial about data structure in JS: eloquentjavascript.net/04_data.html . Also, what has JSON to do with it?I tried a lot. Could you please put the codes you tried?