Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

Null values in JSON passed as { }

$
0
0

I have a JSON request I am sending, and it contains many keys with a null value. Somehow, during the transfer of this JSON to my request (or when it is sent), any null values are all magically switched over to { }, and I get a 400 error because the server is expecting literal nulls. I've tried looking and poking around and cannot find any kind of setting within SoapUI to prevent this.

 

There is a workaround in that the request still goes through if I remove any JSON nodes with a null value, the problem is that there's 180 of them, and that's kind of a hefty workaround for what I assume would be a simple task. Can anyone offer any insight into this?

 

TL;DR: My JSON request has many keys with a literal null value, but when the JSON is transferred to the request, all the nulls switch to { } and my request fails.


Viewing all articles
Browse latest Browse all 21061

Trending Articles