Merge pull request #224 from lmsurpre/master Issue #190 - avoid writing newline before first object/array