fix JSON unterminated string error, add onPostExecute method to invoke UI