I am trying to get data in html page from mongoDB using nodejs
I have a player collection in mongo db
 player collection:[{
 id=value,
 name=value,
 score=value,
 rank=value
 }]
I am trying to get data from nodejs file named players.js file

```
  $(document).ready(function(){
    $.ajax({ url: "",
            context: document.div,
            success: function(){
             player[]= $(".player").load("/players")

            }});
    });

```

I am getting data in this format :

```
      [
  {
    "_id": "54c600a66770e4ea42e6f324",
    "id": 1,
    "name": "Dipesh",
    "rank": 2,
    "score": 2000,
    "__v": 0
  },
  {
    "_id": "54c600cb6770e4ea42e6f325",
    "id": 2,
    "name": "Aakanksha",
    "rank": 3,
    "score": 3920,
     "__v": 0
 }

```

when I saved it it variable and try to print the value of that variable using  

 Document.write(varname);
It is showing me :

```
    [object Object]

```

I want data in following manner:

```
      player.name=value,
      player.score=value

```

like different values in different variables.

Please help me out as I am new with this things.
Thanx in advance