DisallowUnknownFields causes the Decoder to return an error when the destination is a struct and the input contains object keys which do not match any non-ignored, exported fields in the destination.
()
| 47 | // is a struct and the input contains object keys which do not match any |
| 48 | // non-ignored, exported fields in the destination. |
| 49 | DisallowUnknownFields() |
| 50 | |
| 51 | // Decode reads the next JSON-encoded value from its |
| 52 | // input and stores it in the value pointed to by v. |