':all' export tag
[p5sagit/JSON-MaybeXS.git] / lib / JSON / MaybeXS.pm
index 7b0f64e..7f8d357 100644 (file)
@@ -32,6 +32,7 @@ BEGIN {
 
 our @EXPORT = qw(encode_json decode_json JSON);
 our @EXPORT_OK = qw(is_bool);
+our %EXPORT_TAGS = ( all => [ @EXPORT, @EXPORT_OK ] );
 
 sub JSON () { our $JSON_Class }
 
@@ -96,6 +97,10 @@ To import only some symbols, specify them on the C<use> line:
 
   use JSON::MaybeXS qw(JSON); # JSON constant only
 
+To import all available symbols, use C<:all>:
+
+  use JSON::MaybeXS ':all';
+
 =head2 encode_json
 
 This is the C<encode_json> function provided by the selected implementation