JSON writer partially implemented