I've a valid json of the following format.I want to be able to print the value of desc.
var obj =
{
"x-internal": {
"name": {
"desc": "abc"
}
}
}
console.log(" Val :"+obj.x-hooks.warehouse.desc);
I get a reference error saying hooks is not defined.