Hi all, Is there a comprehensive list of differences between how json.NewDecoder(r.Body).Decode(&req) and protojson.Unmarshal(req.Bytes(), pbObj) unmarshals JSON payloads?
Switching from json.NewDecoder(r.Body).Decode(&req) to protojson.Unmarshal(req.Bytes(), pbObj) returned an error due to a case-sensitive matching between the JSON keys and the protobuf struct. In addition, extra fields appear to return an error and are no longer ignored by default unless protojson.UnmarshalOptions are specified. -- By communicating with Grab Inc and/or its subsidiaries, associate companies and jointly controlled entities (“Grab Group”), you are deemed to have consented to the processing of your personal data as set out in the Privacy Notice which can be viewed at https://grab.com/privacy/ <https://grab.com/privacy/> This email contains confidential information and is only for the intended recipient(s). If you are not the intended recipient(s), please do not disseminate, distribute or copy this email Please notify Grab Group immediately if you have received this by mistake and delete this email from your system. Email transmission cannot be guaranteed to be secure or error-free as any information therein could be intercepted, corrupted, lost, destroyed, delayed or incomplete, or contain viruses. Grab Group do not accept liability for any errors or omissions in the contents of this email arises as a result of email transmission. All intellectual property rights in this email and attachments therein shall remain vested in Grab Group, unless otherwise provided by law. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ce130578-859b-47d6-ba38-11cbbe168964n%40googlegroups.com.