Streaming JSON serialization