Are Marshal and Unmarshal functions strictly case sensitive?
The following structure defines a ticket:
type TicketInfo struct {
TicketKey string `json:"ticketKey"`
Ticketextnum string `json:"ticketextnum"`
TicketDate string `json:"ticketDate"`
TicketDesc string `json:"ticketDesc"`
}
This stringified form of this json will be passed as a single parameter in the payload of an API call by the source systems. What will happen if the source system sends, for example, "TicketKey" instead of "ticketKey" for the first field. Will json.Marshal correctly received the ticketKey field?