Comma missing in JSON reponse for report exporter

Nandhini
Nandhini Expensify Customer Posts: 4

HI I'm trying to export the report through report exporter API.I want my response to be in JSON.

I use the following template

<#if addHeader>[</#if>

<#list reports as report>

{

"accountId": "${report.accountID}",

"reportId": "${report.reportID}",

"status": "${report.status}",

"submitDate": "${report.submitted}",

"createdDate": "${report.created}",

"currency": "${report.currency}"

}<#if report?has_next>,</#if>

</#list>

<#if addFooter>]</#if>


Comma is missing after some json objects.Is there any mistakes in the template?

Answers