Skip to content

Commit

Permalink
blessed objects are handled by allow_blessed, not allow_nonref
Browse files Browse the repository at this point in the history
  • Loading branch information
charsbar committed Jan 9, 2017
1 parent da87d8d commit 4a14357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/JSON/PP.pm
Expand Up @@ -2018,7 +2018,7 @@ If C<$enable> is true (or missing), then C<encode> will I<not> throw an
exception when it encounters values it cannot represent in JSON (for
example, filehandles) but instead will encode a JSON C<null> value. Note
that blessed objects are not included here and are handled separately by
c<allow_nonref>.
c<allow_blessed>.
If C<$enable> is false (the default), then C<encode> will throw an
exception when it encounters anything it cannot encode as JSON.
Expand Down

0 comments on commit 4a14357

Please sign in to comment.