json parse batch results & better error handling