fixed atlas to json converter