I think it actually makes good sense for the client to use a header: it is often a common practice to advertise capabilities in HTTP headers (or even e-mail headers...)
However, it might make sense for the server to respond with the noncemask in the JSON content, as the client has already advertised its capability to handle such content.