Json serialization property order #1222
goncalo-oliveira
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
hmm, it should be configurable. maybe something like https://github.com/kubernetes-client/csharp/blob/master/src/KubernetesClient.Models/ModelVersionConverter.cs |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to have properties ordered in the output of a serialization. Not the most important thing in the world, but it would be interesting.
A custom converter that orders all properties alphabetically would probably fix it. There are a few challenges there, such as
JsonExtensionDataAttribute
, but it is feasible.Or... giving the possibility to extend the
JsonSerializerOptions
in the staticKubernetesJson
class.As I said, not the most important thing in the world. To me it is a bit annoying to read a json dump and have the
apiVersion
andkind
at the bottom.Beta Was this translation helpful? Give feedback.
All reactions