title: Talend read JSON data from tRESTRequest
body: <p>I am trying to learn Talend.</p>
  
  <p>Scenario:
      I have to create a REST endpoint  (i am using <code>tRESTRequest</code>) which takes a POST request at <code>http://localhost:8086/emp/create</code> and accepts below json and prints each json field and sends a sample json response containing only <code>name</code> field. </p>
  
  <ol>
  <li><p>How can I do so ? </p></li>
  <li><p>How to read the json data into a java component like <code>tJava</code>?</p></li>
  </ol>
  
  <p>Structure:</p>
  
  <pre><code>{
  "emp" : 
   [ 
      {
        "id":"123",  
        "name": "testemp1"
      },
      {
          "id":"456", 
          "name": "testemp2"
      }
    ]
  }
  </code></pre>
  
  <p>Expected Response:</p>
  
  <pre><code>{
  "emp" : 
   [ 
      {
         "name": "testemp1"
      },
      {
         "name": "testemp2"
      }
    ]
  }
  </code></pre>
  
  <p>I am using  <code>tRESTRequest -&gt; tExtractJSONFields -&gt; tRESTResponse</code>.</p>