Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Error : Must be a JSON primitive

Hi,

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?
 
My JSON looks like this : 
0683p000009M8fT.jpgJSON
Labels (2)
1 Reply
Anonymous
Not applicable
Author

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