Don't accept non-json writes.

cbugg: close bug-432