I have a multipart/form data content type request, which looks like this:
--AbCdeFGHijkL
Content-Disposition: form-data; name="json_standingorderType"
Content-Type: application/json; charset=UTF-8
Content-Transfer-Encoding: 8bit
{"startDate":"2020-12-31","executionRule":"preceding","frequency":"Monthly","dayOfExecution": "31"}
--AbCdeFGHijkL
Content-Disposition: form-data; name="xml_sct"
Content-Type: application/xml; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03">
<CstmrCdtTrfInitn>
<GrpHdr>
<MsgId>MSG{{endToEndIdentification}}</MsgId>
<CreDtTm>{{CreDtTm}}</CreDtTm>
<NbOfTxs>1</NbOfTxs>
<CtrlSum>{{betragOk}}</CtrlSum>
<InitgPty>
<Nm>XS2A Tester</Nm>
</InitgPty>
</GrpHdr>
<PmtInf>
<PmtInfId>NOTPROVIDED</PmtInfId>
<PmtMtd>TRF</PmtMtd>
<NbOfTxs>1</NbOfTxs>
<CtrlSum>{{betragOk}}</CtrlSum>
<ReqdExctnDt>1999-01-01</ReqdExctnDt>
<Dbtr>
<Nm>XS2A Tester</Nm>
</Dbtr>
<DbtrAcct>
<Id>
<IBAN>{{debtorAccountIBAN}}</IBAN>
</Id>
...
I am trying to get the frequency from the json on the top, how can I accomplish this? I am using NodeJS.