Documentation ¶
Overview ¶
Package xml2json is an XML to JSON converter
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
A Decoder reads and decodes XML objects from an input stream.
func NewDecoder ¶
NewDecoder returns a new decoder that reads from r.
func (*Decoder) Decode ¶
Decode reads the next JSON-encoded value from its input and stores it in the value pointed to by v.
func (*Decoder) DecodeWithCustomPrefixes ¶ added in v1.1.0
func (*Decoder) SetAttributePrefix ¶ added in v1.1.0
func (*Decoder) SetContentPrefix ¶ added in v1.1.0
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
An Encoder writes JSON objects to an output stream.
func NewEncoder ¶
NewEncoder returns a new encoder that writes to w.
func (*Encoder) EncodeWithCustomPrefixes ¶ added in v1.1.0
func (*Encoder) SetAttributePrefix ¶ added in v1.1.0
func (*Encoder) SetContentPrefix ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.