replaced asJson by parseJson