Class Writer writes JSON with O(1) granularity and memory.
Array and Object are RAII wrappers for the JSON Writer.