You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ This table shows an overview of the changes:
143
143
| -- | -- | ------- |
144
144
| JSON object members are unmarshaled into a Go struct using a **case-insensitive name match**. | JSON object members are unmarshaled into a Go struct using a **case-sensitive name match**. |[CaseSensitivity](/v1/diff_test.go#:~:text=TestCaseSensitivity)|
145
145
| When marshaling a Go struct, a struct field marked as `omitempty` is omitted if **the field value is an empty Go value**, which is defined as false, 0, a nil pointer, a nil interface value, and any empty array, slice, map, or string. | When marshaling a Go struct, a struct field marked as `omitempty` is omitted if **the field value would encode as an empty JSON value**, which is defined as a JSON null, or an empty JSON string, object, or array. |[OmitEmptyOption](/v1/diff_test.go#:~:text=TestOmitEmptyOption)|
146
-
| The `string` option **does affect** Go bools. | The `string` option **does not affect** Go bools. |[StringOption](/v1/diff_test.go#:~:text=TestStringOption)|
146
+
| The `string` option **does affect** Go strings and bools. | The `string` option **does not affect** Go strings or bools. |[StringOption](/v1/diff_test.go#:~:text=TestStringOption)|
147
147
| The `string` option **does not recursively affect** sub-values of the Go field value. | The `string` option **does recursively affect** sub-values of the Go field value. |[StringOption](/v1/diff_test.go#:~:text=TestStringOption)|
148
148
| The `string` option **sometimes accepts** a JSON null escaped within a JSON string. | The `string` option **never accepts** a JSON null escaped within a JSON string. |[StringOption](/v1/diff_test.go#:~:text=TestStringOption)|
149
149
| A nil Go slice is marshaled as a **JSON null**. | A nil Go slice is marshaled as an **empty JSON array**. |[NilSlicesAndMaps](/v1/diff_test.go#:~:text=TestNilSlicesAndMaps)|
0 commit comments