AnsweredAssumed Answered

JSONSetElement Question/Help

Question asked by fmdataweb on Jul 16, 2018
Latest reply on Jul 16, 2018 by jbrown


I"m using FileMaker Pro v16 and the JSONSetElement function and I'm trying to create some JSON that looks like this:

 

{

  "status": "sent",

  "emailSubject": "Example of one recipient, type signer",

  "recipients": {

    "signers": [{

      "name": "Lisa Simpson",

      "email": "lisa@email.com",

      "recipientId": "1",

      "routingOrder": "1"

    }]

  }

}

 

I can create separate variables that contain this JSON:

 

{"email":"lisa@email.com","name":"Lisa Simpson","recipientId":"1","routingOrder":"1"}

 

and

 

{"emailSubject":"Example of one recipient, type signer","status":"sent"}

 

but I'm stumped on how to combine them and create the signers array inside the recipients object and have been going round in circles for hours. Anyone point me in the right direction

Outcomes