?readviewentries OutputFormat=JSON

hi,

i wanted to know why ?readviewentries OutputFormat=JSON is used

i searched on forums but i dint get clear cut idea.

can any body explain me with some example

i have done something like this and its not working :slight_smile:

var a=/database.nsf/viewname?readviewentries& OutputFormat=JSON

alert(a)

waiting for reply

Thanks

Subject: it’s for including the data in JavaScript

If you have JavaScript code on your web page that needs to handle the data, JSON format lets you include the output directly as part of your source code. So you would just use and you’re all set.

Subject: JSON format

hi,How to access JSON data?

Subject: I’d suggest reading this

http://www.json.org/it gives a good overview of JSON. What you learn there can then be applied to Domino

Then look at the articles out there for Domino and JSON

http://www.google.com/search?q=json+domino

Looking at your first question and the format of your Javascript, you may first want to readup on Javascript at somewhere like: