Tatsuhiko Miyagawa > Plagger-0.7.17 > Plagger::Plugin::Publish::JSON

Download:
Plagger-0.7.17.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Source  

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

syntax highlighting: