[Cuis-dev] Fix in WebClient-WebUtils method jsonMapFrom:
SebastianF
s.fel at gmx.de
Sat Aug 29 04:35:29 PDT 2026
HI,
my LLM discovered a bug in that method. I checked that with a different
LLM and after that as a human.
I think it is a bug and the fix is quite small.
the Line:
stream peek = $} ifTrue:[^map].
should be:
stream peek = $} ifTrue:[stream next. ^map].
an empty object {} must also consume its closing } so the parent map
does not swallow following keys.
Hope some expert can verify this and add this fix in the development branch.
The example is {"a" : {}, "b" : 1}
the result is only a, no b.
There is a quite lengthy explanation of the LLM ... but its in german.
If someone needs it I will send it.
This is the first time I report a bug, so if this is not the right way
there sure is a document I didn't look at.
Sebastian
More information about the Cuis-dev
mailing list