testing handling json