This commit is contained in:
Looly 2024-06-17 15:17:01 +08:00
parent 69b3d4565c
commit 531e467eeb

View File

@ -0,0 +1,12 @@
package cn.hutool.json;
import org.junit.Assert;
import org.junit.Test;
public class IssueIA5YOETest {
@Test
public void parseObjTest() {
String res ="{\"id\":\"chatcmpl-9azySxFBm5hjtaMCccREpCHF3gbQ3\",\"object\":\"chat.completion.chunk\",\"created\":1718605064,\"model\":\"gpt-4o-2024-05-13\",\"system_fingerprint\":\"fp_319be4768e\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"\\\"\"},\"logprobs\":null,\"finish_reason\":null}]}";
Assert.assertNotNull(JSONUtil.parseObj(res));
}
}