developing json writer
refactor
rough add