Permalink
Browse files

simplify array emitting code

  • Loading branch information...
1 parent 4e7ec0c commit 48a34c569dabb179a184ad25d248bcb9465cafcd @moritz committed Dec 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/JSON/Tiny.pm
View
@@ -31,7 +31,7 @@ multi to-json(Str:D $d) {
}
multi to-json(Array:D $d) {
return '[ '
- ~ (map { to-json($_) }, $d.values).join(', ')
+ ~ (map &to-json, $d.values).join(', ')
~ ' ]';
}
multi to-json(Hash:D $d) {

0 comments on commit 48a34c5

Please sign in to comment.