NAME¶
Catmandu::Fix::get_json - get JSON data from an URL as fix function
VERSION¶
version 0.40
SYNOPSIS¶
# returns the hash
get_json("http://example.com/json")
# stores the in path.key
get_json("http://example.com/json", path: path.key)
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.
By now the only additional option of Catmandu::Importer::getJSON supported by
this fix function is "dry". Future releases will also support
setting the URL to a field value of the current item.
AUTHOR¶
Jakob Voss
COPYRIGHT AND LICENSE¶
This software is copyright (c) 2014 by Jakob Voss.
This is free software; you can redistribute it and/or modify it under the same
terms as the Perl 5 programming language system itself.