working with json and views