code: function () {
          var obj = PropertyBase.toJSON(this);
  
          // @todo - remove this when pluralisation is complete
          if (obj.value) {
              obj.values = obj.value;
              delete obj.value;
          }
  
          // ensure that the concept of layers is not exported as JSON. JSON cannot retain references and this will end up
          // being a pointless object post JSONification.
          if (obj._layers) {
              delete obj._layers;
          }
  
          // ensure that tracking flag is not serialized
          // otherwise, it is very easy to let tracking trickle to many instances leading to a snowball effect
          if (obj._postman_enableTracking) {
              delete obj._postman_enableTracking;
          }
  
          return obj;
      }
docs: Convert this variable scope into a JSON serialisable object. Useful to transport or store, environment and
  globals as a whole.
  
  @returns {Object}