Ensure that json print buffer is zero terminated after flush and that total size as calcuated consistently
Ensure that json print buffer is zero terminated after flush and that total size as calcuated consistently

dvidelabs/flatcc,dvidelabs/flatcc,dvidelabs/flatcc