#1 2026-06-10 06:18:26

htits2008
Member
Registered: 2015-03-25
Posts: 38

_json() with single "}" in the content

During the development of an openAI-style LLM client, it was discovered that some JSON strings could not be successfully converted using the `_json()` method when processed with mormot2. This issue mainly occurred when there was a single "}" in the content. I'm not sure which version of mormot2 fixed this issue?

Offline

#2 2026-06-10 06:25:06

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 224

Re: _json() with single "}" in the content

Not sure I follow, valid json object string requires both open and closing bracket so by default _json call would return either false or null variant if your string is malformed.

Offline

#3 2026-06-11 04:30:52

htits2008
Member
Registered: 2015-03-25
Posts: 38

Re: _json() with single "}" in the content

After repeated verification today, it has been confirmed that the issue is caused by a packet collision. It's not a problem with the framework. I misreported the situation. Excuse me.

Offline

Board footer

Powered by FluxBB