Thanks @Claude31, would it more like this then? $eligBase.household.personDetails[6].disabled. By getting the item in the array? I'm getting an error when doing this: Fatal error: Index out of range
Post
Replies
Boosts
Views
Activity
Maybe use @Published instead of @State?
@Claude31. The person_details technically is under the household object, so it's confusing to me how to put this in the let order = constant.
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]))
Hey @Claude31, Thanks for responding! see my below message. Unfortunately, unable to edit my original post with your good suggestions. Thanks!
Hey @Claude31, I've put an extra tidbit below for you to check out. Thank you!
Hi there! Thank you for the link, It may not be what I'm looking for but I updated the question with more specifics. Please let me know if I'm not explaining it well enough.
Thank you @Claude31
Thank you!