JSON representation of a playlist
Switch branches/tags
Nothing to show
Latest commit 7355a69 Apr 29, 2017 @jonathanstowe update META
Failed to load latest commit information.
lib/Audio/Playlist Add add-track Feb 18, 2016
t Add add-track Feb 18, 2016
.gitignore Initial commit Feb 18, 2016
.travis.yml Add travis configuration Oct 23, 2016
LICENCE rename LICENCE as en_GB May 30, 2016
META6.json update META Apr 29, 2017
README.md Update README Jan 21, 2017



JSON representation of a 'playlist'

Build Status


use Audio::Playlist::JSPF;

my $playlist = Audio::Playlist::JSPF.from-json($some-json);

say "Playing from { $playlist.title }";

for $playlist.track -> $track {
    if $track.location.elems {
       say "Playing track { $track.title } by { $track.creator }";
       # TYpically if there is more than one location we might
       # choose the most suitable one.
       my $track-uri = $track.location.first; 
       # Do something with the track


This is a JSON representation of XSPF which is a format for sharing media playlists.

Because this does the role LJSON::Class the objects can be created directly from and serialised to JSON via the C and C methods that role provides.

Currently there doesn't seem to be much software using this format for playlists but JSON is convenient for a variety of reasons.


Assuming you have a working Rakudo Perl 6 installation you should be able to install this with panda :

# From the source directory

panda install .

# Remote installation

panda install Audio::Playlist::JSPF

This should work equally well with zef but I haven't tested it.


If you have any problems or suggestions with this module please report them at:


And I'll see what I can do.


This is free software.

Please see the LICENCE file in the distribution

© Jonathan Stowe 2016, 2017