For example:

```
{
   "Books": [
       {
           "Name-1":"The Alchemist",
           "Type-1":"Fiction"
       },
       {
           "Name-2":"Silent Spring",
           "Type-2":"Non-Fiction"
       },
       {
           "Name-3":"1984",
           "Type-3":"Fiction"
       }
   ]
}

```

I have Books model defined with properties "Name" and "Type". How do I create the JSON as above from Books collection?