java GSON Empty Json Object to null. Sometimes that API you are given just doesn't conform to what you are expecting. I have had to consume a JSON API recently where the JSON returned "{}" instead of null or