Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-89

Empty arrays coming through as null in JSON

    XMLWordPrintable

Details

    • Bug
    • Resolution: Outdated
    • Major
    • None
    • 1.2.1
    • None

    Description

      Related to MGNLREST-83, another change we noticed after the latest updates is that nodes with no children come through with

      { nodes: null }

      instead of

      { nodes: [] }

      . This is a change from the previous behavior and can break code that assumes an array in all cases.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              nwing Nickolaus Wing
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD