• Anonymous
  • Login
  • Register
RVEX - News: Release .93 improves the JSON output. While the initial subroutine (type101) produced properly-formatted JSON, the column va


Release .93 improves the JSON output. While the initial subroutine (type101) produced properly-formatted JSON, the column values for each document in the view were presented as a JSON array instead of a simple JSON object with name/value pairs. This made the JavaScript dot notation to reach the value clumsy. I added subroutine "type102" to correct this feature, while retaining type101 as an example.

The JavaScript for the Handler() function in the sample page has been upgraded to use typ102 and will be posted as a screenshot shortly.

Essentially, once the eval has occurred on the JSON data, the column value for each document is referenced with:

viewentries[i].doc.columnname

e.g.
viewentries[i].doc.city
viewentries[i].doc.state


(where i is the counter integer for the loop from 0 to viewentries.length-1)

By way of comparison, type101 that used arrays for each name/value pair required a more clumsy notation:
viewentries[i].doc[0].city
viewentries[i].doc[1].state

Sorry for such a quick new release, but when I noticed this, I thought people who were interested in JSON would want an improved version immediately.


In this field you can enter the actual news.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.