parse json response, return success boolean