createJSONObject method added