improves cxBufferTerminate()

fix missing error handling when terminating the string

add cxJsonToString() and cxJsonToPrettyString() - resolves #778

(0) -1000 -300 -100 -30 -10 -3 +3 +10 +30 tip

mercurial