Forum Discussion

gztpd's avatar
gztpd
New Member
6 months ago
Solved

SoapUI 5.9.1 displays "[]" as "<Empty JSON content>"

In the latest version of SoapUI, when my endpoints return an empty array, this is correctly displayed in the "Raw" tab of the response (see below). However, the JSON tab displays "<Empty JSON content>", which I would say is semantically incorrect. An empty array IS data. I would only expect to see that message when the response has a zero-length body, which is not the case here.

Is this a deliberate decision or a bug?

--- Raw response below ---

HTTP/1.1 200 OK
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=utf-8
Content-Length: 2
ETag: W/"2-l9Fw4VUO7kr8CvBlt4zaMCqXZ0w"
Vary: Accept-Encoding
Date: Sun, 08 Mar 2026 10:19:39 GMT
Connection: keep-alive
Keep-Alive: timeout=5

[]
  • Hi gztpd​ 

    This appears to be a SoapUI JSON-editor/UI limitation (or regression), not an API issue. The raw response confirms the server returns a valid application/json body with Content-Length: 2 and payload []. An empty JSON array is valid JSON and is semantically different from a zero-length response body.

    Please use the Raw tab as the source of truth . SoapUI’s newer response editor is selected based on the response content type, which may explain why this behavior is visible in the JSON tab.

    Hope this helps !!

1 Reply

  • Humashankar's avatar
    Humashankar
    Icon for Champion Level 3 rankChampion Level 3

    Hi gztpd​ 

    This appears to be a SoapUI JSON-editor/UI limitation (or regression), not an API issue. The raw response confirms the server returns a valid application/json body with Content-Length: 2 and payload []. An empty JSON array is valid JSON and is semantically different from a zero-length response body.

    Please use the Raw tab as the source of truth . SoapUI’s newer response editor is selected based on the response content type, which may explain why this behavior is visible in the JSON tab.

    Hope this helps !!