quick hack to handle multi-line JSON

(just keep reading more lines until it finally parses, or die if it never does)