By creating a Custom Serializer, as I will show you in this post, you will be able to create custom JSON responses in your Drupal Rest Views.
Sometimes if you are developing a decouple web application you’d need to implement a custom D3 Chart, a Js Front End component or library that pulls the data from a Json file with a very specific formatting. This is when a custom serialized endpoint built using Drupal Views comes in handy.