doubtsreadyapi
5 years agoContributor
How to Ignore null values in the POST Request
Hi
Below is my sample request for the POST Request, in the below request some times the table name values comes as empty or null, so while sending the request i want to ignore this null or empty values, is there a way in readyapi where we can ignore?
{
"tables_list" : [
"${#TestCase#Table1}",
"${#TestCase#Table2}",
"${#TestCase#Table3}",
"${#TestCase#Table4}",
"${#TestCase#Table5}",
"${#TestCase#Table6}",
"${#TestCase#Table7}",
"${#TestCase#Table8}",
"${#TestCase#Table9}",
"${#TestCase#Table10}",
"${#TestCase#Table11}",
"${#TestCase#Table12}"
],
doubtsreadyapi You can try like this
sBuild.append("\"\${#TestCase#Table1}\"")
hope it will work. 🙂