diff --git a/json-tools.cabal b/json-tools.cabal
--- a/json-tools.cabal
+++ b/json-tools.cabal
@@ -1,6 +1,6 @@
 Name:           json-tools
 Cabal-Version:  >=1.6
-Version:        0.3.0
+Version:        0.3.1
 License:        BSD3
 License-File:   LICENSE
 Copyright:      (c) Nicolas Pouillard
diff --git a/json-wrap.hs b/json-wrap.hs
--- a/json-wrap.hs
+++ b/json-wrap.hs
@@ -8,7 +8,7 @@
 -- wrap, as in line-wrapping
 
 main :: IO ()
-main = mapM_ S.putStrLn . ($[]) . f . either err id . parseJSON =<< S.getContents
+main = mapM_ S.putStr . ($["\n"]) . f . either err id . parseJSON =<< S.getContents
   where f (JSArray a)   = t"[" . cat (intersperse (t"\n,") (map (t . showJSON) a)) . t"]"
         f (JSObject o)  = t"{" . cat (intersperse (t"\n,") (map g . toList $ o)) . t"}"
         f _             = error "impossible by decodeStrict post-condition"
