Initial JSON writing support.