Adding views datasource for json output