func Marshal(typ string, fieldPairs []interface{}) (string, error)
marshal marshal event information into a JSON string. Field keys must be unique, otherwise marshal returns an error.