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