Added MarshalJSON method to registry