Thanks Rick.Brown, for the prompt reply!!
Let me put it step by step.
1. We have a HTTP listener 1504
2. Have filtered out id and name by using JSON Path Filter
JSON Path : $[*].id
JSON Value : {{ids}} ~ This filter is filtering out (ids=["001","002"])
JSON Length : {{len}} ~ This filter is filtering out (len=2)
JSON Path : $[*].name
JSON Value : {{names}} ~ This filter is filtering out (names=["abc","xyz"])
JSON Length : {{nameleng}} ~ This filter is filtering out (nameleng=2)
3. Performing a JSR step in which i can rephrase the filtered values and create a complete response. planning to store the complete response in a property for further use.
4. Will send back the response back.
Sample Format of Incoming Request:
[{"id"="001","name"="abc"},{"id"="002","name"="xyz"}]
Expected Response: (stored in a property):
{"Checklist":[{"id"="001","name"="abc","comments"="This is same"},{"id"="002","name"="xyz","comments"="This is same"}]}
Intention of code to perform in JSR is to store the above Expected Response in a property, e.x. FinalResponse = {"Checklist":[{"id"="001","name"="abc","comments"="This is same"},{"id"="002","name"="xyz","comments"="This is same"}]}
Kindly let me know in case any more details are required.
Regards,
Bibhu