Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-10656

Skip outputing fields instead of empty string in JSON when undefined

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: ws/3
    • Component/s: Web service
    • Labels:
      None

      Description

      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:

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yvanzo yvanzo
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Packages

                Version Package
                ws/3