Answer the question
In order to leave comments, you need to log in
How to output a specific element from JSON?
{
"name" : "admin",
"id" : "34",
"id_to" : "8"
}
For example, you need to display only the name value, how can this be done?
Answer the question
In order to leave comments, you need to log in
console.log({
"name" : "admin",
"id" : "34",
"id_to" : "8"
}.name)
const obj = {
"name" : "admin",
"id" : "34",
"id_to" : "8"
}
console.log(obj.name)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question