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#
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.