Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get first element in json array javascript

const json = "[1, 2, 3]";
const firstElement = JSON.parse(json)[0];
 
PREVIOUS NEXT
Tagged: #element #json #array #javascript
ADD COMMENT
Topic
Name
7+4 =