JSON parser capable of handling standard and newline-delimited JSON