Construct Json array using Json stringy

Hi All,

Could you please help me out on how to achieve the following scenario,

Json body:


  1. I need to repeat the above Json array based on the profile records present in previous API request. ( if there are 10 profile, the Json body in next request should be repeated 10 )

  2. I referred some of the examples and read the document but couldn’t achieve it

Kindly help me out

Alternative solution tried by me:

  1. To get the total profile record count
  2. Multiply the json array block by the record count

Not entirely completed the alternate one, but it seems some kind of lengthy workaround.

Aravind G

Hi All,

I figured the workaround and its working fine. Able to dynamically construct the json child array based on the previous API call.