[Solved] How to convert Java objects to XML element attributes using JAXB

This is how your Meta class should look like. public class Meta { private String uc; private String pip; private String lot; public String getUc() { return uc; } @XmlAttribute public void setUc(String uc) { this.uc = uc; } public String getPip() { return pip; } @XmlAttribute public void setPip(String pip) { this.pip = pip; … Read more

[Solved] Getting an array of arrays from a POST operation into a GO calculation through reqBody and json unmarshal [closed]

fmt.Println, won’t be showing “,” between each element of array if you want to print it that way you need to format and print it var datas [][]string json.Unmarshal(reqBody, &datas) fmt.Println(“this is after the unmarshalling”) array := []string{} for _, data := range datas { array = append(array, fmt.Sprintf(“[%s]”, strings.Join(data, “,”))) } output := fmt.Sprintf(“[%s]”, … Read more