Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created February 1, 2014 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadzik/8753025 to your computer and use it in GitHub Desktop.
Save tadzik/8753025 to your computer and use it in GitHub Desktop.
$ cat jsontest
use JSON::Tiny;
my $list = from-json slurp 'projects.json.bootstrap';
say $list.elems;
say $list.perl;
$ rakudobrew current
Currently running moar-HEAD
$ perl6 -I ext/JSON__Tiny/lib/ jsontest
18
["source-type" => "local", "source-url" => "_BASEDIR_/File__Find", "version" => "*", "name" => "File::Find", "description" => "Bla bla", "depends" => [], "source-type" => "local", "source-url" => "_BASEDIR_/Shell__Command", "version" => "*", "name" => "Shell::Command", "description" => "Ble ble", "depends" => ["File::Find"], "source-type" => "local", "source-url" => "_BASEDIR_/JSON__Tiny", "version" => "*", "name" => "JSON::Tiny", "description" => "A minimal JSON (de)serializer", "depends" => []]
$ rakudobrew switch parrot
Switching to parrot-HEAD
Updating shims
$ perl6 -I ext/JSON__Tiny/lib/ jsontest
3
[{"source-type" => "local", "source-url" => "_BASEDIR_/File__Find", "version" => "*", "name" => "File::Find", "description" => "Bla bla", "depends" => []}, {"source-type" => "local", "source-url" => "_BASEDIR_/Shell__Command", "version" => "*", "name" => "Shell::Command", "description" => "Ble ble", "depends" => ["File::Find"]}, {"source-type" => "local", "source-url" => "_BASEDIR_/JSON__Tiny", "version" => "*", "name" => "JSON::Tiny", "description" => "A minimal JSON (de)serializer", "depends" => []}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment