Bug fixing: json attributes for resources