Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-818

the response of REST APIs should use empty array rather than null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.12.1
    • None

    Description

      It seems to me empty array is more suitable than null.  The benefit is that user don't need to check null before looping the value. Maybe some json tools can convert null array to empty automatically. However, using empty array to replace null can save the rest of json tools (and programmers) from null hell.

      Attachments

        Issue Links

          Activity

            People

              chia7712 Chia-Ping Tsai
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: