Permalink
Browse files

export to-json proto

  • Loading branch information...
1 parent 8b0cab6 commit 682039b0461e75b938970aae38d2ff568810c95f @moritz committed Nov 2, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/JSON/Tiny.pm
View
@@ -18,6 +18,8 @@ module JSON::Tiny;
use JSON::Tiny::Actions;
use JSON::Tiny::Grammar;
+proto to-json($d) is export(:DEFAULT) { to-json($d) }
+
multi to-json(Num $d) { ~$d }
multi to-json(Int $d) { ~$d }
multi to-json(Bool $d) { $d ?? 'true' !! 'false'; }

0 comments on commit 682039b

Please sign in to comment.