Downloads

Download tar.gz 37.14 KB
MD5: 9a30713e58acf6edb12e9ad71311722d
SHA-1: 394eef5e9cb4214bb3afcfbca0f8973512591c6d
SHA-256: b7825b209ae9136bbc141935d1ebd8ad393798ce9b595502423e1e4ace4c7474
Download zip 64.59 KB
MD5: e25a0765da9ac86c694eef86e27dfe0d
SHA-1: 5b6c129d7a8cddc8180e84c7dbd5a2e4e540ef89
SHA-256: 29193297ab97b2e2a5b9e9b858e5a5feb28b0c1ffa415f4c172227e10f71cbfb

Release notes

Committed patch by icylace (http://drupal.org/node/627384#comment-2257878):
1. Rewrote the JSON renderer. A preprocess step for making MIT Simile/Exhibit JSON has been added to streamline rendering. json_encode() will be used if it's available otherwise rendering will be done based on code from the drupal_to_js() Drupal core function. This allows for all data types including nested objects and arrays to be encoded properly. Preview rendering will be done using a more hacked version of the code from drupal_to_js() to allow for pretty-printing.
2. Reorganized the style settings screen.
3. Changed to the array form of str_replace() in views_json_encode_special_chars().
4. Empty fields are now included. I don't know why they were originally excluded.
5. Now using the "application/json" content type.
6. Renamed views_json_get_json() to views_json_get(). It now returns an object by default and also has an optional parameter to return the raw JSON string.

1. Renamed views_json_strip_illegal_chars() to views_json_check_label(). It's less of a misnomer and more informative of its intended use.
2. Corrected function comments for views_json_check_label().
3. Using views_json_check_label() on object labels as it should be.

Created by: allisterbeharry
Created on: 8 Sep 2009 at 16:51 UTC
Last updated: 12 Feb 2019 at 15:03 UTC
New features
Bug fixes

Other releases