Forum Discussion

doubtsreadyapi's avatar
doubtsreadyapi
Contributor
5 years ago

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's avatar
      doubtsreadyapi
      Contributor

      Hi nmrao 

       

      Since its going with null or empty values, once the request is posted, in backend jobs are running because of this null values its getting failed.

       

      So when the table names are null we must ignore while sending the POST request.

      • nmrao's avatar
        nmrao
        Champion Level 3
        Empty value can affect, but not null. Can show clearly the raw request (text format)?