DESCRIPTION

This Catmandu::Fix provides a method to fetch JSON data from an URL. The response is added as new item or to a field of the current item.

OPTIONS

The first argument must be an URL, an URL template, or a field where to take an URL or URL template from. Additional options include:

path

Field to store result JSON in. If not given or set to the empty string, the whole item is replaced by the fetched JSON response. If the first argument is a field, the same field is used as path by default.

vars

Field to get URL template variables, URL query parameters or an URL path expression from. This option is required if the first argument is an URL template.

The fix function also supports options dry, cache, timeout, agent, proxy, and wait as documented in Catmandu::Importer::getJSON. Options client, headers, and warn are not supported.

Module Install Instructions

To install Catmandu::Fix::get_json, simply copy and paste either of the commands in to your terminal

As a valued partner and proud supporter of MetaCPAN, StickerYou is
happy to offer a 10% discount on all Custom Stickers,
Business Labels, Roll Labels,
Vinyl Lettering or Custom Decals. StickerYou.com
is your one-stop shop to make your business stick.
Use code METACPAN10 at checkout to apply your discount.