I have request body of supplier in below format :
{
"supplier": {
"supplierData": {
"supplierAddress": {
"street": "abc",
"postCode": "1234",
"city1": "abcd",
"country": "DE",
"region": "BW"
},
"location": {
"locationID": "1234",
"locationName": "South Africa "
},
"lastUpdatedDateTime": "2022-06-28T10:07:37.000Z"
}
}
}
able to consume it and need to know how to consume the below body request for Location object as null instead of string :
{
"supplier": {
"supplierData": {
"supplierAddress": {
"street": "abc",
"postCode": "1234",
"city1": "abcd",
"country": "DE",
"region": "BW"
},
"location": "null",
"lastUpdatedDateTime": "2022-06-28T10:07:37.000Z"
}
}
}
Any idea how we would do it.