Use the multiline or array options to parse pretty-printed JSON or JSON arrays.

METHODS

new(file => $filename , fh => $fh , multiline => 0|1 ,fix => [...])

Create a new JSON importer for $filename. Uses STDIN when no filename is given. multiline switches optionally between line-delimited JSON and multiline JSON or arrays. the default is line-delimited JSON.

The constructor inherits the fix parameter from Catmandu::Fixable. When given, then each fix or fix script will be applied to imported items.