NAME

Plagger::Plugin::Publish::JSON - Publish JSON data output

SYNOPSIS

- module: Publish::JSON
  config:
    dir: /path/to/data

DESCRIPTION

This plugin dumps feed data to JSON JavaScript Object Notation.

CONFIG

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.

AUTHOR

Tatsuhiko Miyagawa

SEE ALSO

Plagger, JSON::Syck