Pass Json Array of objects in Jenkins parameters

How to pass json array of objects in build parameters upstream pipeline and send those array of objects into downstream pipeline and loop each array of objects by using groovy.

Any parameter it will supports to send array of objects and if not by default it should be ‘empty array’ value.

I think you would need to send as a text representation and then convert to actual JSON in the downstream job via readJSON or something similar. I don’t think there is a built-in mechanism to pass an array of JSON objects, so you would have to marshall/unmarshall on your own.