yevgenypats commented on issue #34292:
URL: https://github.com/apache/arrow/issues/34292#issuecomment-1447096059

   > Hmm, that's a good point. You can override the `MarshalJSON` method, but 
you're right. It won't cover the case for `RecordToJSON` or for marshalling to 
JSON from inside a nested type. Exposing the `arrjson` internal pkg wouldn't do 
anything to help that either. We should modify the `ExtensionArrayBase` struct 
so that the behavior can be more customizable. Possibly by allowing a way to 
set a custom JSON marshaller into it. If you think of a good way to implement 
it, I'll happily review the PR.
   
   Not sure but what about making `getOneForMarshal` public I think then it 
should be possible to overwrite it. Given Im new to the codebase, Is there a 
reason why `getOneForMarshal` is private in the first place (or just basically 
keeping everything private until public is needed which is a good reason and 
then we can make it public :) )


-- 
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