I have a set of values in an array where each value has an ID
and LABEL
.
Once I have the value array and type console value[0]
and value[1]
, the output is:
value[0]
Object {ID: 0, LABEL: turbo}
value[1]
Object {ID: 1, LABEL: classic}
How can I store these values in a hash map like a key-value (ID-LABEL) pair, and store them in a json?