--- a/docs/Writerside/topics/json.h.md Sun Dec 07 15:34:46 2025 +0100 +++ b/docs/Writerside/topics/json.h.md Sun Dec 07 19:36:51 2025 +0100 @@ -28,6 +28,9 @@ CxJsonStatus cxJsonNext(CxJson *json, CxJsonValue **value); void cxJsonDestroy(CxJson *json); + +CxJsonStatus cxJsonFromString(const CxAllocator *allocator, + AnyStr str, CxJsonValue **value); ``` The first step is to initialize a `CxJson` structure with a call to `cxJsonInit()`, @@ -55,6 +58,8 @@ If you want to reuse a `CxJson` structure, you can call `cxJsonReset()`, even if the last operation was a failure. Otherwise, you need to call `cxJsonDestroy()` when you are done with the parser. +The function `cxJsonFromString()` combines the above procedure. + ### List of Status Codes Below is a full list of status codes for `cxJsonNext()`.