Question

Webservice Array request Json

  • 1 February 2023
  • 5 replies
  • 29 views

Hi team I have two json request for singleton

[{

“a”: “1”

“b”:”2”

“c”:”3”

}]

and for batch

[{

“a”: “1”

“b”:”2”

“c”:”3”

},

{

“x”: “4”

“y”:”5”

“z”:”6”

}

]

 

if singleton come i need to pass first request and if batch comes i need to pick the second one and in the second one i need to pick first value.

 

am using json generator how to convert that into array as a request and then for batch how to pick the first value from multiple values.

 

 

 


5 replies

how to remove the opening and closing brackets and pass it as json to request

 

[{

“a”: “1”

“b”:”2”

“c”:”3”

}]

Userlevel 4
Badge

@akanshajain6793 

 

Try using Field Pivoter.

 

Use / for path. It will extract the records from the array for you. 

no i cant use that i need to pass json request all together its dividing the fields

@saleempothiwala 

input

{a:1, b:2, c:3}

output 

 

{“a”:”1”, “b”:”2”, “c”:”3”}

 

how to add double quotes into request

Userlevel 5
Badge +1

@akanshajain6793 

Please find attached the pipeline , i hope it will help you on your issues.

Kindly let me know if you have any issues /concerns.

 

Thanks & Regards

Bikram_

Reply