Formatting projections

Although modifying serialization behavior with attributes can be useful for basic manipulation, there is sometimes a need for heavier operations such as mapping or aggregating values. These are cases for projections. Projections provide a large number of operations to the format flag in the form of transforms and key attributes. By combining these, results can be heavily modified to suit specific needs.

Projections allow users to extract values from their object paths, specifying nested objects to be acted on. For example, our results for listing services as JSON contained many fields we likely don't care about. We can use a simple transform projection to only list the fields we need. Try limiting the result fields ...

Get Building Google Cloud Platform Solutions now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.