Skip to content

Commit

Permalink
actually commit the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gfldex committed Sep 23, 2017
1 parent 6bd56e0 commit f78fe6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/JSON/Fast.pm
Expand Up @@ -38,6 +38,9 @@ sub to-json($obj is copy, Bool :$pretty = True, Int :$level = 0, Int :$spacing =

return "\"{str-escape($obj)}\"" if $obj ~~ Str;

return "$obj" if $obj ~~ Dateish;
return "{$obj.DateTime.Str}" if $obj ~~ Instant;

if $obj ~~ Seq {
$obj = $obj.cache
}
Expand Down

0 comments on commit f78fe6d

Please sign in to comment.