Implemented (but did not add tests for) writeJson for the primitive Avro types.