[Cuis-dev] Fix in WebClient-WebUtils method jsonMapFrom:
Juan Vuletich
juan at cuis.st
Sat Aug 29 14:56:00 PDT 2026
Thanks Folks. I've just added Nicolas' fix. I also added Sebastian's
example both to WebClient and JSON packages.
Cheers,
On 2026-08-29 10:56 AM, Nicolas Cellier via Cuis-dev wrote:
> 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
>
>
--
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260829/08f693ff/attachment.htm>
More information about the Cuis-dev
mailing list