//JsonStable convert event to stable ordered json by marshalling event twice to keep the same json output
JsonStable convert event to stable ordered json by marshalling event twice to keep the same json output
// JsonStable convert event to stable ordered json by marshalling event twice to keep the same json output
func (e DispatchedEvent) JsonStable() string {
	byteEvt, _ := json.Marshal(&e)
	commMap := make(map[string]interface{})
	_ = json.Unmarshal(byteEvt, &commMap)
	mapByteEvt, _ := json.Marshal(commMap)
	return string(mapByteEvt)
}
func ( e DispatchedEvent ) JsonStable ( ) string { byteEvt , _ := json . Marshal ( & e ) commMap := make ( map [ string ] interface { } ) _ = json . Unmarshal ( byteEvt , & commMap ) mapByteEvt , _ := json . Marshal ( commMap ) return string ( mapByteEvt ) }
JsonStable convert event to stable ordered json by marshalling event twice to keep the same json output
JsonStable convert event to stable ordered json by marshalling event twice to keep the same json output