I am trying to populate my input fields based on the retrieved JSON object. The field names in my form would be something like:
- fullName
- account.enabled
- country.XXX.XXXX
The function should return something like below for the above fields
- aData["fullName"]
- aData["account"]["enabled"]
- aData["country"]["XXX"]["XXXX"]
How should I write my a function that returns a matching JSON entry for a given HTML field's name ?