refactored json keys into constants