Client: Helper function getField to ensure fields in JSON response.