Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robrwo opened this issue Jun 18, 2021 · 2 comments
Open

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

robrwo opened this issue Jun 18, 2021 · 2 comments

Comments

@robrwo
Copy link

robrwo commented Jun 18, 2021

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.

@coolharsh55
Copy link
Contributor

This is addressed (sort-of) within the spec as a note in Section 6.1 as -

Future versions of this specification may define other members, to provide relevant information in a structured, machine-readable way.

And through an example in Section 7.1

{
  "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."
    },
    {
      "id": "q2recommendation",
      "text": "We observe your interaction with our content to personalise your experience by recommending content you may find of interest."
    },
  ]
}

So to maintain consistency, the term should be consentRequests, and the format should be:

{
  "consentRequests":  [ 
    {
      "id": "A",
      "text": "xyz"
    }
  ]
}

@gb-noyb
Copy link
Collaborator

gb-noyb commented Jul 8, 2021

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

Not sure if I misunderstand your question. The JSON file is indeed specified to be an object, not a list. See https://www.dataprotectioncontrol.org/spec/#dfn-consent-requests-resource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants