Switch to s11n for serialization in place of read/write.