#1 Today 06:18:26

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

_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 Today 06:25:06

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

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

Board footer

Powered by FluxBB