diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 82dfad4..3bcd266 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,7 +16,7 @@ Any code that is added must: * Be backward compatible with the existing exposed go API * Have zero external dependencies * Preserve existing benchmark performance -* Preserve compatibility with existing decoding behavior of `Unmarshal()` or `UnmarshalStrict()` +* Preserve compatibility with existing decoding behavior of `UnmarshalCaseSensitivePreserveInts()` or `UnmarshalStrict()` * Avoid use of `unsafe` ## Getting Started diff --git a/README.md b/README.md index a524e92..0ef8f51 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ It provides case-sensitive, integer-preserving JSON unmarshaling functions based ## Compatibility -The `Unmarshal()` function behaves like `encoding/json#Unmarshal()` with the following differences: +The `UnmarshalCaseSensitivePreserveInts()` function behaves like `encoding/json#Unmarshal()` with the following differences: - JSON object keys are treated case-sensitively. Object keys must exactly match json tag names (for tagged struct fields) @@ -21,7 +21,7 @@ The `Unmarshal()` function behaves like `encoding/json#Unmarshal()` with the fol ## Additional capabilities -The `UnmarshalStrict()` function decodes identically to `Unmarshal()`, +The `UnmarshalStrict()` function decodes identically to `UnmarshalCaseSensitivePreserveInts()`, and also returns non-fatal strict errors encountered while decoding: - Duplicate fields encountered