DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+4 =
Submit