]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Fix JSON emission for implicit arrays in libucl
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 16 Feb 2026 19:08:55 +0000 (19:08 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 16 Feb 2026 19:08:55 +0000 (19:08 +0000)
commit0511e24c113ae44c6f09707a61de8352d45e1bb3
treea0ec10f6f886f43650f2b745c59f2bffd7791fbe
parent31eb3e5782363bc31439482362ed59f176a2a106
[Fix] Fix JSON emission for implicit arrays in libucl

When emitting UCL objects with implicit arrays (multiple values for the
same key) as JSON, the emitter was producing invalid output by:
- Not printing the key before the array for non-first elements
- Missing comma separators between elements

This caused rspamadm configdump -j to output malformed JSON like:
  "actions": {...}[
instead of:
  "actions": {...},
  "group": [
contrib/libucl/ucl_emitter.c