title: passing a name and List of object in feature file in cucumber
body: <p>I want to pass something like this in feature file in cucumber</p>
  
  <pre><code>Feature: Testing different requests on the XLR CD API
  Scenario: Check if the student application can be accessed by users
  Scenario Outline: Create a new student &amp; verify if the student is added
  When I create a new student by providing the information studentcollege &lt;studentcollege&gt; studentList &lt;studentList&gt;
  Then I verify that the student with &lt;student&gt; is created
   Examples: 
    | studentcollege                   |  studentList                                                              | 
    | abcd                             | [{student_name": "student1","student_id": "1234"},{student_name": "student1","student_id": "1234"}]  | 
  </code></pre>
  
  <p>I have class as </p>
  
  <pre><code>Class Student{
       String name;
       String id;
  }
  </code></pre>
  
  <p>and step definition file is </p>
  
  <pre><code>    @When("^When I create a new student by providing the information studentCollege (.*) studentList (.*)$")
  public void generatestudent(String studentOwner, List&lt;Student&gt; listOfstudent) {
      // need to fetch values in here from whatever is given in feature file
  
  }
  </code></pre>
  
  <p>how to pass such values in feature file Example. so that can be retrieved in step definition function. </p>