-
Improvement
-
Resolution: Unresolved
-
Normal
-
None
-
None
In JSON WS/2 undefined fields are represented with empty string, whereas it is not output at all in XML WS/2 since it is optional in MMD Schema 2.0.
For example, disambiguation comment in artist lookup:
- XML: https://musicbrainz.org/ws/2/artist/5441c29d-3602-4898-b1a1-b77fa23b8e50
- JSON: https://musicbrainz.org/ws/2/artist/5441c29d-3602-4898-b1a1-b77fa23b8e50?fmt=json:
"disambiguation": ""
It is a waste of resources. Note that it is related to `browse` and `lookup` requests mostly, since search requests are handled by the indexed search server that returns a handful of fields only.