removing deprecated calls of json