I have this JSON object
"actos-evaluacion" : [
{
"subject" : < id-subject>,
"name" : < name>,
"marks" : ["<student_id>:< mark>","< student_id>:< mark>",
"<student_id>:< mark>"] },
...
{
"subject" : < id-subject>,
"name" : < name>,
"marks" : ["<student_id>:< mark>","< student_id>:< mark>",
"<student_id>:< mark>"] },
] }
And I want to convert it into this Map, so there will be more Maps than JSON, because each JSON will split into different maps depending on the number of students it has.
{
id_subject :
name :
student_id :
mark :
}
I've tried putting a foreach(json) where subject_id and name where stored in variables. Then set_payload with the list and another foreach for the elements of the list but I don't know how to recover the variables into a Map operator to join them all