working on ToJson