Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 5, 2019 12:29
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 Whateverable/401fa8edea40e269a80d13c329ac4ef2 to your computer and use it in GitHub Desktop.
Save Whateverable/401fa8edea40e269a80d13c329ac4ef2 to your computer and use it in GitHub Desktop.
evalable6
say to-json <a b c d e>.map({ %(:title($_), :active, :pattern("*$_*"), :1type, :1protocols) }).Hash
{
"active": true,
"type": 1,
"protocols": 1,
"pattern": "*e*",
"title": "e"
}
Saw 1 occurrence of deprecated code.
================================================================================
Sub to-json (from GLOBAL) seen at:
/tmp/TyO0BZtgCR, line 1
Please use JSON::Fast, JSON::Tiny or JSON::Pretty from https://modules.perl6.org/ instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment