When running things like false, null or [] through json_decode() you get things that evaluates to false, however, those are valid json data.

This leads to things like [] being sent as string as opposed to an empty array.

CommentFileSizeAuthor
#2 2907370-n2.patch928 byteshanoii

Comments

hanoii created an issue. See original summary.

hanoii’s picture

Status: Active » Needs review
StatusFileSize
new928 bytes

This patch should work for all cases of proper json_decoding alternatives.

imclean’s picture

Looks good, thanks. If anything else comes up we can handle them in follow up issues.

  • imclean committed 7240e11 on 8.x-1.x authored by hanoii
    Issue #2907370 by hanoii: Properly handle all kind of valid json, like...
imclean’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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