JSONFeed
NAME
Syndicate::JSONFeed - JSON Feed 1.1
SYNOPSIS
my $feed = Syndicate::JSONFeed.new($json-string);
my $feed = Syndicate::JSONFeed.new(:title("My Feed"), :feed_url("..."), ...);
say $feed.to-json;
my %h = $feed.to-hash;
DESCRIPTION
Parses and generates JSON Feed 1.1. Does Syndicate::Feed.
Note: When constructed from a hash, a missing version is defaulted to
https://jsonfeed.org/version/1.1. Auto-detection in Syndicate::Parse
is deliberately stricter ā it only treats input as a JSON Feed when a version
starting with https://jsonfeed.org/version/ is present, so that arbitrary JSON
documents are not mistaken for feeds.
ATTRIBUTES
$.title,$.link,$.description- from Feed role$.generator,$.language- from Feed role$.version- JSON Feed version (default:https://jsonfeed.org/version/1.1)$.feed_url- Feed URL$.user_comment- User comment$.next_url- Next URL for pagination$.icon- Feed icon URL$.favicon- Favicon URL%.author- Author hash (name, url, avatar)$.expired- Whether feed is expired