trying out with the json function