```{index} single: allow_blessed (JSON::XS) ``` ```{index} single: JSON::XS::allow_blessed ``` ```{index} single: JSON::XS::allow_nonref ``` ```{index} single: JSON::XS::allow_tags ``` ```{index} single: JSON::XS::allow_unknown ``` ```{index} single: JSON::XS::ascii ``` ```{index} single: JSON::XS::canonical ``` ```{index} single: JSON::XS::convert_blessed ``` ```{index} single: JSON::XS::indent ``` ```{index} single: JSON::XS::latin1 ``` ```{index} single: JSON::XS::pretty ``` ```{index} single: JSON::XS::relaxed ``` ```{index} single: JSON::XS::shrink ``` ```{index} single: JSON::XS::space_after ``` ```{index} single: JSON::XS::space_before ``` ```{index} single: JSON::XS::utf8 ``` # allow_blessed The option setters: `ascii`, `latin1`, `utf8`, `indent`, `canonical`, `space_before`, `space_after`, `pretty`, `allow_nonref`, `shrink`, `allow_blessed`, `convert_blessed`, `relaxed`, `allow_unknown` and `allow_tags`. Also available as `JSON::XS::allow_nonref`, `JSON::XS::allow_tags`, `JSON::XS::allow_unknown`, `JSON::XS::ascii`, `JSON::XS::canonical`, `JSON::XS::convert_blessed`, `JSON::XS::indent`, `JSON::XS::latin1`, `JSON::XS::pretty`, `JSON::XS::relaxed`, `JSON::XS::shrink`, `JSON::XS::space_after`, `JSON::XS::space_before`, `JSON::XS::utf8`. ## Synopsis ```perl my $json = JSON::XS->new->utf8->pretty->canonical(1)->relaxed(0); ``` ## What you get back The object itself, with the option on (no argument, or a true one) or off (a false one). `pretty` sets `indent`, `space_before` and `space_after` together.