Resolved bug with java object conversion to json

The changes made ensure grails converters are used to generate the json string for mixpanel for any java object.