How i can send one parameter in to rest api which can be null or have some value? i want send this parameter with json. Data is read from an external file,my problem is that this file has several rows and in some of these rows my parameter's value are empty and some containing data I want to automatically delete the parameters that are empty in the automatic test and even remove the key until the exception does not occur.
"length": "${DataSource#Length}",
"offset": "${DataSource#Offset}",
"cityCode": "${DataSource#CityCode}",
"cityName" : "${DataSource#CityName}" ,
"provinceCode": "${DataSource#ProvinceCode}",
"provinceName" : "${DataSource#ProvinceName}"