// MarshalJSON return specific encoded json
MarshalJSON return specific encoded json
// MarshalJSON return specific encoded json
func (s *StringSlice) MarshalJSON() ([]byte, error) {
	s.mu.RLock()
	defer s.mu.RUnlock()
	var buf bytes.Buffer
	fmt.Fprintf(&buf, "[")
	for k, v := range s.s {
		if k != 0 {
			fmt.Fprintf(&buf, ",")
		}
		fmt.Fprintf(&buf, "%q", v)
	}
	fmt.Fprintf(&buf, "]")
	return buf.Bytes(), nil
}
func ( s * StringSlice ) MarshalJSON ( ) ( [ ] byte , error ) { s . mu . RLock ( ) defer s . mu . RUnlock ( ) var buf bytes . Buffer fmt . Fprintf ( & buf , " " ) for k , v := range s . s { if k != 0 { fmt . Fprintf ( & buf , " " ) } fmt . Fprintf ( & buf , " " , v ) } fmt . Fprintf ( & buf , " " ) return buf . Bytes ( ) , nil }
MarshalJSON return specific encoded json
MarshalJSON return specific encoded json