Customized Export in Modules

Hi all,

I have created a customized Module called Custom. How can i modify the export function in Custom so that a JSON file will be exported, not .csv ? I know the question is pretty vague, but i only want to know if its possible and WHERE should i change in the code, if i want to modify this Export-Function.

I hope to hear from you soon.