added gson helper to support byte array