I'm attempting to use the Destiny 2 API in a discord chatbot I have been writing. Right now I just want it to return my player id by sending a request to the address designated in the API. I can successfully do this but it returns more information than I need. How do I just return the 'membershipId'?

The body of this request returns:

```
{
    "Response": [
        {
            "membershipType": 4,
            "membershipId": "4611686018470641209",
            "displayName": "LazyBrain#2918"
        }
    ],
    "ErrorCode": 1,
    "ThrottleSeconds": 0,
    "ErrorStatus": "Success",
    "Message": "Ok",
    "MessageData": {}
}

```

Code:

```
    case 'stats':
    let options = {
        url: HOST + '/SearchDestinyPlayer/4/LazyBrain%232918/',
        headers: {
            'X-API-Key': config.key
        }
    };

    request(options, function (err, res, body) {
        let json = JSON.stringify(JSON.parse(body)['Response']);
        console.log(json);
    });

```

But with the above code I have narrowed it down to:

```
[
    {
        "membershipType": 4,
        "membershipId": "4611686018470641209",
        "displayName": "LazyBrain#2918"
    }
]

```

I'm not entirely sure if I'm going about this the right way though.