Applied to JSON-like content from others, it will produce well-formed JSON that should satisfy any parser you use. Applied to your output before you send, it will coerce minor mistakes in encoding and ...
In my career, I have consumed hundreds of REST APIs and produced dozens. Since I often see the same mistakes repeated in API design, I thought it might be nice to write down a set of best practices.
Additionally, although we have a passengers property, it is not an array. In order to correctly implement the interface, we remove fuelType and change the value of passengers so that it is an array ...