Validate JSON lines before trying to send.
Validate JSON lines before trying to send.

Theoretically, the strings returned by _GetResultsJSON should always be valid, but in some rare cases, the results_to_retry file may have garbage inserted into it. If we come across such garbage, maybe we should just print an error and move past it.

BUG=377685

Review URL: https://codereview.chromium.org/300273006

git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@273300 0039d316-1c4b-4281-b951-d872f2087c98

eunchong/build,eunchong/build,eunchong/build,eunchong/build