I’m writing a JSON API client library in elixir and so I’m trying to better understand what cases I’ll need to handle.
The spec says:
A JSON object MUST be at the root of every JSON API request and response containing data
(emphasis mine) and goes on to explain what that top level document should look like.
Does that mean the server may omit the JSON object entirely in some cases and respond with an HTTP status code and no response body at all?