Serialises this config into its canonical form (YAML). Can be loaded using fromJsonString afterwards.