Convert JSON flattened for forms back to an object
- by George Jempty
I am required (please therefore no nit-picking the requirement, I've already nit-picked it, and this is the req) to convert certain form fields that have "object nesting" embedded in the field names, back to the object(s) themselves. Below are some typical form field names:
phones_0_patientPhoneTypeId
phones_0_phone
phones_1_patientPhoneTypeId…