optional setJSONObject method added