Catmandu::Importer::getJSON - Load JSON-encoded data from a server using a GET HTTP request
This Catmandu::Importer performs a HTTP GET request to load JSON-encoded data from a server. Each input line corresponds to a HTTP request. The following input formats are accepted:
- plain URL
A line that starts with "http://" or "https://" is used as URL as given.
- URL path
A line that starts with "/" is appended to the configured url parameter.
A JSON object with variables to be used with an URL Template or as HTTP query parameters.
If the HTTP response is a JSON array, its elements are returned as items.
Optional HTTP client settings.
Input to read lines from (see Catmandu::Importer). Defaults to STDIN.
An optional fix to be applied on every item (see Catmandu::Fix).
This software is copyright (c) 2014 by Jakob Voß.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 156:
alternative text 'http://tools.ietf.org/html/rfc6570' contains non-escaped | or /