Web API to processParameter

Hello all,

I want to send the following body from Web API to Process Model, I need to change the format as shown below, 

Web API Code:

{
"references": {
"ABC": "111",
"DEF": "222",
"GHI": "333",
"JKL": "444",
"other": {"MNO-555", "XYZ-123", "PQR-666"}
}
}

Change this to the following format:

[ref_text=111, refSource_text=ABC],
[ref_text=222, refSource_text=DEF],
[ref_text=333, refSource_text=GHI],
[ref_text=444, refSource_text=JKL],
[ref_text=555, refSource_text=MNO],
[ref_text=123, refSource_text=XYZ],
[ref_text=666, refSource_text=PQR]

Appreciate if anyone can help me in resolving it, thanks in advance.

  Discussion posts and replies are publicly visible