Exporting data to template in JSON format.