When setting a value inside an array or object, the generation of that node is incremented. However, all example code calls the LITE3_STR macro on the root buffer. Consequently, setting a value within a nested array or object won't invalidate existing lite3_str values.
Suggested fix: Clarify that LITE3_STR must be called on buf + ofs.
When setting a value inside an array or object, the generation of that node is incremented. However, all example code calls the
LITE3_STRmacro on the root buffer. Consequently, setting a value within a nested array or object won't invalidate existinglite3_strvalues.Suggested fix: Clarify that
LITE3_STRmust be called onbuf + ofs.