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 not at all. For example, this is OK: { "name": "Chris", "