refactored Mixpanel API + added JSON java