title: Retrieve object fields described in field list
body: <p>I'm have list with fields to retrieve from basic object. I tried to use a map but it did not work. For example:
  I have below base object "Audit" (as a json, to better describe)</p>
  
  <pre><code>{
      "sendDate": "11/11/2017",
      "id": "1",
      "user": "name1",
      "role": "admin",    
      "auditType": "download",
      "points": 3
  }
  </code></pre>
  
  <p>And I get from different microservices a list with fields to return, for example</p>
  
  <pre><code>["sendDate", "id", "auditType"] 
  </code></pre>
  
  <p>and for this example I should return below "Audit" :</p>
  
  <pre><code>{
      "sendDate": "11/11/2017",
      "id": "1",  
      "auditType": "download"
  }
  </code></pre>
  
  <p>and I have to return Audit type with only fields described in fields list. Is there any smart solution? I know i may use a lot of if but the real case is much more complex so I'm currently looking for a smart solution and cannot find any one. Thank you</p>