Plagger::Plugin::Publish::JSON - Publish JSON data output
- module: Publish::JSON
config:
dir: /path/to/data
This plugin dumps feed data to JSON JavaScript Object Notation.
- dir
- Directory name to save.
- varname
-
varname: foo
Variable name to store JSON data. If set, .json file would
include the variable declaration e.g.:
var foo = { ... }
Optional.
- jsonp
-
jsonp: bar
JSONP callback name to pass JSON data back. Optional. If set,
.json file would wrap the returned data in a callback function,
e.g.:
bar({ ... })
Optional.