diff --git a/FU/Util.pm b/FU/Util.pm index 922747d..4b06f33 100644 --- a/FU/Util.pm +++ b/FU/Util.pm @@ -137,7 +137,7 @@ value for C<$val>, due to C<\0> and C<\1> being considered booleans. =head1 JSON Parsing & Formatting This module comes with a custom C-based JSON parser and formatter. These -functions conform strictly to L, +functions conform to L, non-standard extensions are not supported and never will be. It also happens to be pretty fast, refer to L for some numbers. @@ -171,6 +171,13 @@ Supported C<%options>: =over +=item allow_control + +Boolean, set to true to allow (encoded) ASCII control characters in JSON +strings, such as C<\u0000>, C<\b>, C<\u007f>, etc. These characters are +permitted per RFC-8259, but disallowed by this parser by default. See +C below. + =item utf8 Boolean, interpret the input C<$string> as a UTF-8 encoded byte string instead @@ -251,10 +258,9 @@ value. There is no way to do that without violating JSON specs, so you should use entity escaping instead. Some JSON modules escape the forward slash (C) character instead, but that -is, at best, B sufficient for embedding inside a C<<