Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
x2j
✓ github.com/beego/x2j
Convert XML to JSON
package main
import (
"fmt"
"github.com/beego/x2j"
)
func main() {
xml := `<root><item>value</item></root>`
json, _ := x2j.XmlToJson([]byte(xml))
fmt.Println(string(json))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20131220205130-a0352aadc542latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.