[Cuis-dev] Fix in WebClient-WebUtils method jsonMapFrom:

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Sat Aug 29 06:56:01 PDT 2026


Or just

    (stream peekFor: $}) ifTrue: [^map]

Le sam. 29 août 2026 à 13:35, SebastianF via Cuis-dev <
cuis-dev at lists.cuis.st> a écrit :

> 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
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260829/2c6fa396/attachment.htm>


More information about the Cuis-dev mailing list