Modify code to get scaling json by catalog