Skip to content

JSON-decode modifier doesn't "fail correctly" on non-string datatypes #2810

@Thomas-Gelf

Description

@Thomas-Gelf

Expected Behavior

JSON-decode should fail for invalid data, and the configured fallback behaviour should apply.

Current Behavior

If someone passes non-JSON data (object / stdClass, array), recent PHP-versions trigger an error BEFORE json_decode is reached. That why, silencing errors (to suppress warnings) and checking for the last json_error does not work as expected. Null is returned, the configured error handling isn't reached.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions