If you want to use your own templates (be it HTML, XML, JSON or any other format) for a TYPO3 extension using fluid templating, you can add additional template paths.
An extensions template/partial/layout paths are usually set in TypoScript setup under the properties
plugin.tx_<extensionkey>...