work to do is on Drupal 8
1. Create a Controller in a existing module i have. and that controller should perform the following.
2. Need to get all the nodes of a content type.
3. Load all the node objects in a array.
4. finally the controller should return a JSON.