Test parsing of json input

Also had a brief test with line breaks but could
not reproduce the error reported in #42