Post

Replies

Boosts

Views

Activity

Comment on Converting Swift to JSON
Thanks @Claude31, Could you help me input it correctly into the order constant? You'll see at the end of it I have person_details but can't get it to go into the overall household object as from my full Json object in the question posted. Thanks! & I did define some more coding keys. struct Order: Encodable {     let household: Eligibility     let personDetails: PersonDetails } let order = Order(household: Eligibility(residence: "PA", hhmembers: 1, receivingBen: [], unhoused: false, utilityType: ["Peco"], residenceType: "other", propertyTax: false, homeRepairs: false, fileLastTax: false, heatRepairs: false, receivingMax: ["cip": false], person_details: [age: 18]))
Mar ’22