update jsonobject (fixes int/long issue)