pass json to View