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: module/spring-boot-kotlinx-serialization-json/src/main/java/org/springframework/boot/kotlinx/serialization/json/autoconfigure/KotlinxSerializationJsonAutoConfiguration.java
+12-13Lines changed: 12 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -81,21 +81,20 @@ public void customize(JsonBuilder jsonBuilder) {
Copy file name to clipboardExpand all lines: module/spring-boot-kotlinx-serialization-json/src/main/java/org/springframework/boot/kotlinx/serialization/json/autoconfigure/KotlinxSerializationJsonProperties.java
+54-55Lines changed: 54 additions & 55 deletions
Original file line number
Diff line number
Diff line change
@@ -38,83 +38,82 @@ public class KotlinxSerializationJsonProperties {
38
38
private@NullableJsonNamingStrategynamingStrategy;
39
39
40
40
/**
41
-
* Whether resulting JSON should be pretty-printed: formatted and optimized for human
42
-
* readability.
41
+
* Whether resulting JSON should be pretty-printed.
43
42
*/
44
-
private@NullableBooleanprettyPrint;
43
+
privatebooleanprettyPrint;
45
44
46
45
/**
47
-
* Enable lenient mode that removes JSON specification restriction (RFC-4627) and
48
-
* makes parser more liberal to the malformed input.
46
+
* Whether parser should operate in lenient mode, removing the JSON specification
47
+
* restriction (RFC-4627) and being more liberal to malformed input.
49
48
*/
50
-
private@NullableBooleanlenient;
49
+
privatebooleanlenient;
51
50
52
51
/**
53
52
* Whether encounters of unknown properties in the input JSON should be ignored
54
53
* instead of throwing SerializationException.
55
54
*/
56
-
private@NullableBooleanignoreUnknownKeys;
55
+
privatebooleanignoreUnknownKeys;
57
56
58
57
/**
59
58
* Whether default values of Kotlin properties should be encoded.
60
59
*/
61
-
private@NullableBooleanencodeDefaults;
60
+
privatebooleanencodeDefaults;
62
61
63
62
/**
64
63
* Whether null values should be encoded for nullable properties and must be present
65
64
* in JSON object during decoding.
66
65
*/
67
-
private@NullableBooleanexplicitNulls;
66
+
privatebooleanexplicitNulls = true;
68
67
69
68
/**
70
-
* Enable coercing incorrect JSON values.
69
+
* Whether to coerce incorrect JSON values.
71
70
*/
72
-
private@NullableBooleancoerceInputValues;
71
+
privatebooleancoerceInputValues;
73
72
74
73
/**
75
-
* Enable structured objects to be serialized as map keys by changing serialized form
76
-
* of the map from JSON object (key-value pairs) to flat array like [k1, v1, k2, v2].
74
+
* Whether to allow structured objects to be serialized as map keys by changing the
75
+
* serialized form of the map from JSON object (key-value pairs) to flat array like
76
+
* [k1, v1, k2, v2].
77
77
*/
78
-
private@NullableBooleanallowStructuredMapKeys;
78
+
privatebooleanallowStructuredMapKeys;
79
79
80
80
/**
81
-
* Whether to remove JSON specification restriction on special floating-point values
82
-
* such as 'NaN' and 'Infinity' and enable their serialization and deserialization as
83
-
* float literals without quotes.
81
+
* Whether to remove the JSON specification restriction on special floating-point
82
+
* values such as 'NaN' and 'Infinity' and allow their serialization and
83
+
* deserialization as float literals without quotes.
0 commit comments