We are trying to convert a Java Class instance to JSON by using GSON library. This class includes a ByteBuffer instance as a member that is created by allocateDirect.
Due to the fact that ByteBuffer created by allocateDirect holds data in Native memory area, GSON fails to serialize this field to JSON.
How can we customize/configure GSON to handle ByteBuffer's native data ?
Thanks...