Currently i'm trying to check if the key value in my json file is null then i will return false, however it doesnt seem to work.
This is my null-checking code
jsonGet = ObjectMapper().readTree(//json file);
if(jsonGet.get("key1") == null){
return false; //end program
}
//do something else
Tho i set that key value in my json file like so, it also said "key1 => null" in my watch
"key1": null,
It somehow doesnt jump into the return false, dont really know what im doing wrong here