use class_name instead of class in json