Convert JSON to Array in Javascript
· ☕ 1 min read
Often my server DB functions return the data in JSON format with all fields and values thrown in.
1 const alphaNum = { a: 1, b: 2, c: 3, d: 4, e: 5 }; When we use charts (or even tables), this needs to be converted to an array of arrays.