Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get json object key name

var obj = {"success":"You are welcome"};
var keys = Object.keys(obj);
console.log(keys[0]);
 Run code snippetHide results
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #json #object #key
ADD COMMENT
Topic
Name
5+7 =