polished json conversion & file option done