Is there a way I can get rid of the line creationTimestamp: null without having to save the file and manipulate it? Or if I can pass a real timestamp to display in the output is also better than having null.
But I don’t see the advantage of removing it, null is a valid JSON value.
There are other fields (in my output anyway) such as strategy, status and resources which are also empty placeholders.
The reason I want to remove it is because I’m using Ansible module k8s and enable k8s validation parameter of that module would fail on null value of the creationTimestamp line.