Problem/Motivation

JSON validation always fails with an exception.

For example:

{
  cookieless_mode: 'on_reject'
}

but also any other code.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork posthog-3567993

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anybody created an issue. See original summary.

grevil made their first commit to this issue’s fork.

grevil changed the visibility of the branch 3567993-json-validation-is to hidden.

grevil changed the visibility of the branch 3567993-json-validation-is to active.

grevil’s picture

Assigned: grevil » Unassigned
Status: Active » Needs review
Issue tags: -Needs tests

That should be it.

grevil’s picture

Done, added a note to the description instead!

anybody’s picture

For the records:

PHP is unhappy with unquoted keys:

{
  cookieless_mode: 'on_reject'
}

only valid is:

{
  "cookieless_mode": "on_reject"
}
anybody’s picture

Status: Needs review » Reviewed & tested by the community

grevil’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.