So, I get some JSON values from the server but I don\'t know if there will be a particular field or not.
So like:
{ \"regatta_name\":\"ProbaRegatta\"
Try this:
let json=yourJson if(json.hasOwnProperty(yourKey)){ value=json[yourKey] }