strictMerge property

bool strictMerge
final

When true, object/scalar merge conflicts are wrapped in a list.

This matches modern Node qs behavior for inputs such as a[b]=c&a=d, which decodes as {'a': [{'b': 'c'}, 'd']}. Set to false to restore the legacy behavior where non-empty scalar values are used as object keys with value true.

Implementation

final bool strictMerge;