title: JavaScript need a way to clean up JSON.Stringify without modifying a helper function
body: <p>Working on an assignment. I am using .filter() to find a list of active members. Following the instructions of the assignment the output is very messy. I would like to only display the member names or the member _ids.</p>
  <p>This is the helper function and I cannot modify this function. As a rule of the assignment.</p>
  <pre><code>const printKata = function (kataNumber, object) {
      const detailsElement = document.createElement(&quot;details&quot;);
      main.append(detailsElement);
  
      const summaryElement = document.createElement(&quot;summary&quot;);
      summaryElement.append(&quot;KATA &quot; + kataNumber);
      detailsElement.append(summaryElement);
  
      const stringifiedObject = JSON.stringify(object);
      detailsElement.append(stringifiedObject);
  </code></pre>
  <p>...</p>
  <p>Here is an example of the user object</p>
  <pre><code>const users = [
    {
      _id: &quot;5efb83d333dadb00fc5f68e4&quot;,
      isActive: true,
      balance: &quot;$2,967.17&quot;,
      picture: &quot;http://placehold.it/32x32&quot;,
      age: 21,
      eyeColor: &quot;green&quot;,
      name: &quot;Gregory Villarreal&quot;,
      company: &quot;BLUPLANET&quot;,
      email: &quot;undefined.undefined@bluplanet.name&quot;,
      phone: &quot;+1 (866) 544-2326&quot;,
      registered: &quot;Friday, May 24, 2019 3:08 PM&quot;,
      tags: [&quot;quis&quot;, &quot;irure&quot;, &quot;consequat&quot;, &quot;ut&quot;, &quot;occaecat&quot;],
    }
  </code></pre>
  <p>...</p>
  <p>And here is the simple function to filter the data.</p>
  <pre><code>let userActive = users.filter(function (user) {
      return user.isActive === true;
  });
  </code></pre>
  <p>...</p>
  <p>Currently it is displaying all the data from the entire object. I think it would look a lot nicer to only display the name and or id ..</p>
  <p>I am very new to all of this. Please be patient with me.</p>