docs/Writerside/topics/json.h.md

changeset 1566
2ebbcb38986d
parent 1556
afdaa70034f8
equal deleted inserted replaced
1565:fb314eeca7a4 1566:2ebbcb38986d
53 but the parsed input does not constitute a complete JSON value. 53 but the parsed input does not constitute a complete JSON value.
54 In that case, you can call `cxJsonFill()` again to add more data and continue with `cxJsonNext()`. 54 In that case, you can call `cxJsonFill()` again to add more data and continue with `cxJsonNext()`.
55 55
56 A complete list of all status codes can be seen [below](#list-of-status-codes). 56 A complete list of all status codes can be seen [below](#list-of-status-codes).
57 57
58 If you want to reuse a `CxJson` structure, you can call `cxJsonReset()`, even if the last operation was a failure. 58 If you want to reuse a `CxJson` structure, you can call `cxJsonReset()`.
59 In particular, you _must_ reset the parser when the last operation was a failure.
59 Otherwise, you need to call `cxJsonDestroy()` when you are done with the parser. 60 Otherwise, you need to call `cxJsonDestroy()` when you are done with the parser.
60 61
61 The function `cxJsonFromString()` combines the above procedure. 62 The function `cxJsonFromString()` combines the above procedure.
62 63
63 ### List of Status Codes 64 ### List of Status Codes

mercurial