|
loadjson()
Creates a JSON object based on the text retrieved from the supplied location. The function lets you retrieve content from a JSON enabled server using a standard HTTP request. Popular content management systems, like WordPress (requires JSON API plugin) and Drupal provide a JSON service/API to retrieve content. Loadjson() is cached per batch run (based on the URL) in print/email. This online JSON viewer is handy to debug JSON data: http://jsonviewer.stack.hu loadjson(location)Loads json data from the specified location. location String; the supplied location should
be either a URL or a relative file path. The ExamplesThis sample script retrieves JSON data from a snippet.
This script retrieves a post from a WordPress site.
This script retrieves multiple posts from a WordPress site.
|
|