Amplitude-Android icon indicating copy to clipboard operation
Amplitude-Android copied to clipboard

[Feature request] Ability to log event properties using a Map similar to Mixpanel

Open agramian opened this issue 6 years ago • 1 comments

Mixpanel allows setting event properties by passing a Map<String, Object> properties using set*Map() methods. It would be nice to have this same functionality with Amplitude.

agramian avatar Jul 27 '17 21:07 agramian

Yes. Construction of a JSONObject is really messy in the client code. It would be better to do the Map -> JSONObject conversion within the AmplitudeClient.

Can't we have similar methods like logEvent() that takes Map instead of JSONObject? And perform final JSONObject jsonObject = new JSONObject(map); within those methods?

thsaravana avatar Oct 08 '17 03:10 thsaravana