c# json contains key code example Example: c# json contains property if(obj["proprty_name"] != null){ // do something }