fix .json() issue