I have this result in JSON that I receive from IBM Watson:
{
"document_tone": {
"tones": []
}
}
This result, I keep it inside a variable in Javascript. My question is: How can I put a condition in Javascript, so that each time I get that result, in the console I put: "Empty results"?
Thank you very much!