You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation of the space_after option says that it "will add ... extra whitespace after the , separating key-value pairs and array members." However, it doesn't actually do this.
use warnings;
use strict;
use Cpanel::JSON::XS ();
use JSON::PP ();
print Cpanel::JSON::XS->new->utf8->space_after->encode({x=>[1,2]}), "\n";
print JSON::PP->new->utf8->space_after->encode({x=>[1,2]}), "\n";
__END__{"x": [1, 2]}{"x": [1,2]}
The text was updated successfully, but these errors were encountered:
haukex
changed the title
space_after doesn't do what is documented
space_after doesn't add space after comma
Apr 13, 2024
The documentation of the
space_after
option says that it "will add ... extra whitespace after the,
separating key-value pairs and array members." However, it doesn't actually do this.The text was updated successfully, but these errors were encountered: