Adding support for multiline json documents

Fixes #275