Commit 53fdc53
authored
Fix confusing description of JsonPrimitive.content (#2670)
- clarifies that JsonPrimitive.content will return `"null"` rather than `null`
- include the suggestion that `contentOrNull` should be used if the JsonPrimitive could be `JsonNull`
- fix potentially misleading usage in `JsonTreeTest`1 parent e35c28d commit 53fdc53
File tree
2 files changed
+3
-2
lines changed- formats
- json-tests/commonTest/src/kotlinx/serialization/json/serializers
- json/commonMain/src/kotlinx/serialization/json
2 files changed
+3
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments