Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default content to an empty arrayref rather than undef
If $content is undef because Elements had no value, the JSON::to_json comparison with $new_content can fail with: hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) We have seen this error when the JSON module is running with JSON::PP rather than JSON::XS.
- Loading branch information