json.net has key method? November 19, 2022 by Tarik Just use x["error_msg"]. If the property doesn’t exist, it returns null.