updated to initialize json object with empty constructor to prevent null being translated to empty string which causes exceptions