JSON string buffering now works