For example, I have nginx and incoming JSON header:
{
"orgs" : {
"first_org_roles": ["role_a_r", "role_b_r", "role_c_r"],
"second_org_roles": ["role_d_r", "role_e_r", "role_f_r"]
}
}
Is it possible to parse it into an array:
["role_a_r", "role_b_r", "role_c_r", "role_d_r", "role_e_r", "role_f_r"]
and set it as a header in nginx?