JsonObject.remove and JsonArray.remove should return the previous value