Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions core/src/main/java/com/alibaba/fastjson2/JSONReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -6519,10 +6519,10 @@ public enum Feature {
DisableReferenceDetect(MASK_DISABLE_REFERENCE_DETECT),

/**
* Feature that determines whether to unwrap single-element string arrays to scalar values.
* When enabled, JSON arrays containing a single string element will be
* unwrapped to just that string value rather than returning the array.
* For example, ["value"] would be returned as "value".
* Feature that disables unwrapping of single-element string arrays to scalar values.
* When enabled, JSON arrays containing a single string element will NOT be
* unwrapped, and will instead be returned as arrays.
* For example, ["value"] would be returned as ["value"] rather than "value".
* @since 2.0.60
*/
DisableStringArrayUnwrapping(1L << 34L);
Expand Down
Loading
Loading