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