I am using TrestClient for a POST method for creating new data set at my target. However I am getting an error, status code : 400 (Bad Request). When I check the JSON being generated in Postman it says "
Must be a JSON primitive on the simple field content [/root/Contact[*]/CoreAttributes/firstName]" . The field actually has a Null value. Any suggestions?
This looks like your JSON is incorrect. Your "firstname" field is certainly not a JSON Primitive. A JSON Primitive would be something like a number or a String. This looks to be a complex type. You will need to check your API's specification