javascript create array with array to json code example Example: json arrays { "array": [{1,2,3,4,5,6}] }