Ouch, that hurt. Beginner's mistake.
JSON writer cleanup.