// JsonString  returns a JSON encoding of the Packet struct.
JsonString  returns a JSON encoding of the Packet struct.
// JsonString returns a JSON encoding of the Packet struct .
func (p *Packet) JsonString() string {
	s := make([]string, len(p.Headers))
	for i := range p.Headers {
		if p.Headers[i] == nil {
			break
		}
		s[i] = p.Headers[i].JsonElement()
	}
	return fmt.Sprintf("{\"time\":%d,%s}", p.Time.UnixNano(), strings.Join(s, ","))
}
func ( p * Packet ) JsonString ( ) string { s := make ( [ ] string , len ( p . Headers ) ) for i := range p . Headers { if p . Headers [ i ] == nil { break } s [ i ] = p . Headers [ i ] . JsonElement ( ) } return fmt . Sprintf ( " \" \" " , p . Time . UnixNano ( ) , strings . Join ( s , " " ) ) }
JsonString  returns a JSON encoding of the Packet struct.
JsonString returns a JSON encoding of the Packet struct .