Use correct json attributes