Read JSON data in view for pjax app.