Option to ignore empty fields

Created on 30 January 2024, almost 2 years ago
Updated 14 March 2024, almost 2 years ago

Problem/Motivation

The module ignores the 'No results' settings and so always includes fields even if they are empty.
For example, I use an multi-value entity reference field called 'Prerequisites ID' and if there are none then I don't want to see it in the output...

[
  {
    "title": "Binary terminology",
    "url": "node/60",
    "type": "Interactive challenge",
    "id": 60,
    "prerequisite_id": [
      
    ]
  },

The reasoning behind this is that strictly speaking when building semi-structed data, we should be able to have some attributes 'missing' on JSON objects.

I'm interested in comments on this.

Thank you

✨ Feature request
Status

Needs work

Version

3.0

Component

Documentation

Created by

πŸ‡¬πŸ‡§United Kingdom SirClickALot Somerset

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024