JSON Array Example

Work with JSON arrays.

Preview

Code

<script>
let json = "[1,2,3,4]";

let arr = JSON.parse(json);

console.log(arr[0]);
</script>

More JS JSON Examples (7)