I have the following Dataset:
{
"createFormInstanceRequest": {
"formId": "xxxxxxxxxxxxxxxxxxxxxxx",
"requestOptions": {
"requestAction": "SUBMIT"
},
"responseOptions": {
"returnFormDefinition": false,
"returnFormInfo": false,
"returnFormData": true
},
"formData": {
"groups": [{
"groupId": "studentDetails",
"iterations": [
[{
"fieldId": "studentName",
"value": ["timothy jones"]
}, {
"fieldId": "studentid",
"value": ["sxxxxxx"]
}, {
"fieldId": "address",
"value": ["12/12 some street"]
}, {
"fieldId": "attendingevent",
"value": ["No"]
}]
]
}, {
"groupId": "grades",
"iterations": [
[{
"fieldId": "math",
"value": ["C"]
}, {
"fieldId": "PE",
"value": ["D"]
}, {
"fieldId": "english",
"value": ["A"]
}, {
"fieldId": "science",
"value": ["B"]
}]
]
}]
}
}
}
I am struggling to parse the field names and values as everything is placed in either: createFormInstanceRequest.formData.groups{}.iterations{}{}.fieldId and createFormInstanceRequest.formData.groups{}.iterations{}{}.value{} .
They both become multivalue fields.
I couldn't get SPATH to work with this data and changing the log format is not an option either.
How can I create fields based on the fieldIDS and assign them the corresponding values in search time?
... View more