json_io encode is missing buffer length parameter
Hello,
I believe the constructor and the encode method of the json_io class are missing a bufferLength parameter, to indicate the size of the char buffer that is available for encoding.
Currently when the buffer is too small, encode just crashes.
It would be better if the encode would return an error and the required buffer size (for encoding to succeed), when the buffer is too small.
Best regards,
Sam