Xuanwo commented on PR #1797:
URL: 
https://github.com/apache/incubator-opendal/pull/1797#issuecomment-1488500729

   > Getters or methods as part of a class cannot be serialized.
   
   If we intend to enable users to serialize the struct that we have returned, 
it implies a commitment on our part not to alter the layout of the struct. 
Therefore, returning an `Object` is the only viable option. Introducing a new 
API such as `toJSON` will not address this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to