File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
formats/json/commonMain/src/kotlinx/serialization/json Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ It gives the following nice result:
95
95
### Lenient parsing
96
96
97
97
By default, [ Json] parser enforces various JSON restrictions to be as specification-compliant as possible
98
- (see [ RFC-4627] ). Particularly, keys must be quoted, while literals must be unquoted . Those restrictions can be relaxed with
98
+ (see [ RFC-4627] ). Particularly, keys and string literals must be quoted . Those restrictions can be relaxed with
99
99
the [ isLenient] [ JsonBuilder.isLenient ] property. With ` isLenient = true ` , you can parse quite freely-formatted data:
100
100
101
101
``` kotlin
Original file line number Diff line number Diff line change @@ -254,11 +254,10 @@ public class JsonBuilder internal constructor(json: Json) {
254
254
255
255
/* *
256
256
* Removes JSON specification restriction (RFC-4627) and makes parser
257
- * more liberal to the malformed input. In lenient mode quoted boolean literals,
258
- * and unquoted string literals are allowed.
257
+ * more liberal to the malformed input. In lenient mode, unquoted JSON keys and string values are allowed.
259
258
*
260
259
* Its relaxations can be expanded in the future, so that lenient parser becomes even more
261
- * permissive to invalid value in the input, replacing them with defaults .
260
+ * permissive to invalid values in the input.
262
261
*
263
262
* `false` by default.
264
263
*/
You can’t perform that action at this time.
0 commit comments