Create JSON from Java object.
This is especially useful for converting Bundles or data from Firebase RemoteMessage.
Bundle
RemoteMessage
The generated JSON.
The object to convert.