Output that appears just before JSON output (but doesn't have a newline!) is now handled properly. (Fixes #61)