Added failure checks to internal HTTP requests. Moved JSON record delimiters into iterator loops