Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

export to-json proto

  • Loading branch information...
commit 682039b0461e75b938970aae38d2ff568810c95f 1 parent 8b0cab6
@moritz authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/JSON/Tiny.pm
View
2  lib/JSON/Tiny.pm
@@ -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'; }
Please sign in to comment.
Something went wrong with that request. Please try again.