--- sites/all/modules/views_datasource/views-view-json.tpl.php 2009-02-15 12:02:36.000000000 +0100 +++ sites/all/modules/views_datasource/views-view-json-fixed.tpl.php 2009-02-15 12:02:58.000000000 +0100 @@ -31,7 +31,7 @@ if ($options['format'] == 'Exhibit') jso function json_simple_render($items, $view) { define('EXHIBIT_DATE_FORMAT', '%Y-%m-%d %H:%M:%S'); - $json = '"nodes":'.str_repeat(" ", 4)."[\n"; + $json = '{ "nodes":'.str_repeat(" ", 4)."[\n"; foreach($items as $item) { $json.= str_repeat(" ", 6)."{\n"; foreach($item as $itemfield) { @@ -50,7 +50,7 @@ function json_simple_render($items, $vie } $json.=str_repeat(" ", 6)."},\n\n"; } - $json.=str_repeat(" ", 4)."]"; + $json.=str_repeat(" ", 4)."] }"; /* * The following will cause an error in a live view preview - comment out if * debugging in there.