Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript json get all value of key in json array

let array = [{"time":"2016-07-26 09:02:27","type":"aa"},
  {"time":"2016-11-29 05:21:02","type":"ar"},
  {"time":"2016-03-08 05:46:01","type":"ar"},
]
array = array.map(i => i.type); //Get all type values in object
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #json #key #json #array
ADD COMMENT
Topic
Name
6+9 =