Refactor 3ds to json converter.