title: Transform Tables of Data in Cucumber
body: <p>I'm working on Cucumber to write BDD tests for a Java program in a spring boot project.</p>
  
  <p>Imagine this table as an example of user given data:</p>
  
  <pre><code>Given user wants to buy a T-shirt with the following attributes
    | color | size  |
    | blue  | small |
    | black | large |
  </code></pre>
  
  <p>the problem comes in mapping data, where I'm calling an API which gets data as json and knows <code>colour</code> not <code>color</code> and gets <code>S</code> and <code>L</code> as <code>size</code> properties not <code>small</code> and <code>large</code>.</p>
  
  <p>is there any way to auto convert data from tables, including values or headers for tables with more columns and rows?</p>