If I have a JSON object like this:
{
"message": {
"name": { "stringLengthTooShort": "blub" }
}
}
The name of the property (here) stringLengthTooShort
is changing every time,
how could I simply just get the child property of name
with JS?
At the moment I have message.name
but how could I get now the child of it?
if it's always the first property of
message.name
, you could do something like: