Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json get key

var jsonData = {person:"me", age :"30"};

console.log(Object.keys(jsonData)[0])
// Prints person
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #json #key
ADD COMMENT
Topic
Name
8+8 =