Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow non-Arrays that are Positional to serialize like arrays, sirrob…

…ert++
  • Loading branch information...
commit dc013369b6cbfd86337b1c88d915698dc05cff30 1 parent 871d1a7
Moritz Lenz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/JSON/Tiny.pm
2  lib/JSON/Tiny.pm
View
@@ -29,7 +29,7 @@ multi to-json(Str:D $d) {
.subst(/<-[\c32..\c126]>/, { ord(~$_).fmt('\u%04x') }, :g)
~ '"'
}
-multi to-json(Array:D $d) {
+multi to-json(Positional:D $d) {
return '[ '
~ $d.map(&to-json).join(', ')
~ ' ]';
Please sign in to comment.
Something went wrong with that request. Please try again.