Skip to content

The JSON list does not allow for an extension of the format #10

@robrwo

Description

@robrwo

Using a JSON list does not allow for the format to be extended. Consider using a JSON object (a.k.a. hash or associative array) instead, since it allows useful metadata, something like:

{
  'version': 1.0,
  'privacy_policy' => 'https://www.example.com/privacy.html',
  'contact'            => 'https://www.example.com/contact.html',
  'consentRequests': [
  {
    "id": "q1analytics",
    "text": "We track and analyse your visit(s) on this website, for improving our product; this places a cookie on your device to recognise you on subsequent page visits."
   },
   ...
  ]
}

Notice the above example has a version. as well as links to a privacy policy and contact page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions