async function getJSON() {
  _log('Getting environment JSON')
  try {
    await refresh()
  } catch {
    // swallow error
  }

  const items = []
  Object.keys(settings).forEach(function settingKeysForEach(key) {
    settings[key].forEach(function settingsValuesForEach(setting) {
      items.push([key, setting])
    })
  })
  _log('JSON got')
  return items
}
Refreshes settings and returns the settings object.

@private
@returns {Promise} the updated/refreshed settings