wrote JsonManager class