JSON invalid value

Hi all,
By using Unity JSON utility, is there a way to check if json is valid?
I want to do something like this but have no idea how to check if json is valid

string json = wr.downloadHandler.text;

if(json.isvalid){
  jsonObject obj  = JsonUtility.FromJson<jsonObject >(json );
}
else{
  // Handle error here
}

Can someone guide me or shine a bit of light on this?

Thank you

There is not a valid property because it depends if you try to cast it to a jsonObject will work but if you cast it to another type it will not, so there is no a simply “general” way of knowing if the json is valid

 string json = wr.downloadHandler.text;
 jsonObject obj  = JsonUtility.FromJson<jsonObject >(json );

 if(obj == null)
 {
    // Handle error here
 }