Since the maintainer fails to provide documentation on the steps to get JSON working, here is a good (working) example...

Make sure that Views API mode is NOT ENABLED. The description of this setting explains it all:




http://drupal.stackexchange.com/questions/60499/views-json-output

My gripe with module developers is this: They seem to be more interested in providing a trophy module that works for them, but does not work for the majority of Open Source Community users.

I hope this doesn't sound harsh, but I think Drupal should award (with ratings system) developers that provide thoroughly documented projects.

Solution provided via stack exchange: http://drupal.stackexchange.com/questions/60499/views-json-output

Make sure that Views API mode is NOT ENABLED. The description of this setting explains it all:

Go to the configuration of your Views display which produces the JSON output.
Click on the Settings link of the JSON data document format.
Make sure that Views API mode is not enabled. The description of this setting explains it all:

Not using View API mode means the JSON gets output directly and the server ceases normal page processing. Using it means the server does not cease processing after outputting the JSON. This allows the Views API to be used with the view without having to prematurely terminate page processing.
shareimprove this answer
answered Feb 9 '13 at 1:13

balintk
54627

Thank you very much. I missed that setting – sisko Feb 9 '13 at 9:00
add comment

Comments

Back From 7’s picture

Issue summary: View changes
Back From 7’s picture

Issue summary: View changes
Back From 7’s picture

Issue summary: View changes
anthonylindsay’s picture

Status: Active » Fixed

In defence of module developers, you will often find documentation packaged as part of the module, even if there are no dedicated documentation pages on drupal.org. Some developers like to include their documentation as comments in the module code. Personally, I prefer to have it in the readme.txt or on a web page, but each to their own.

In this case, the readme.txt file contains lots of documentation, including the steps to get a datasource view working, and details on the ViewsAPI option.

If you need further tutorial information, there is a nice short video tutorial on youtube. It's for the D6 version, but it still looks relevant. That was from a quick initial search. There are probably others.

Marking this as fixed. Please re-open if there's specifics missing from the existing docs.

Back From 7’s picture

Thanks anthonylindsay

I understand about where the documentation is. I am just saying I am seeing a trend lately with lack of documentation or outdated documentation.

If modules don't work people will flock to other options.

I have been working with Drupal since version 5

Hopefully Drupal 8 will be different but I noticed that there were 9000+ files in the latest alpha.

I am frankly exhausted with Drupal. They should fix current core releases before creating new ones...

anthonylindsay’s picture

Status: Fixed » Closed (fixed)

Closing