Hi! I'm not sure whether it works with previous Views but with the beta4 I get:
PHP Fatal error: Cannot use object of type views_handler_field_date as array in .../modules/views_datasource/views_json.views.inc on line 132
The reason is that field is not an array but an object. So, to fix this one should change the function template_preprocess_views_view_row_unformatted.
Fixed one : replaced $field['handler'] with $field (w/o ['handler']) :
function template_preprocess_views_view_row_unformatted(&$vars) {
$view = $vars['view'];
//print('preprocess');
// Loop through the fields for this view.
foreach ($view->field as $id => $field) {
if (!empty($field) && is_object($field)) {
$object = new stdClass();
$object->content = $field->theme($vars['row']);
if (isset($field->field_alias) && isset($vars['row']->{$field->field_alias})) {
$object->raw = $vars['row']->{$field->field_alias};
}
else {
$object->raw = NULL; // make sure it exists to reduce NOTICE
}
if (!empty($vars['options']['separator']) && $object->content) {
$object->separator = filter_xss_admin($vars['options']['separator']);
}
$object->handler = $field;
$object->class = views_css_safe($id);
$object->label = check_plain($field->label());
$vars['fields'][$id] = $object;
}
}
Comments
Comment #1
guillaumeduveauWell Views is now 6.x-2.2 so this issue is not relevant any more.
But with the latest Views this module is still broken because of the view API change. Download the latest working version here (comment #9) : http://drupal.org/node/307223#comment-1040887
Marking this as a duplicate of http://drupal.org/node/307223