determing what is in json object