Inline::JSON

Embed JSON data structures directly into your Perl code
Download

Inline::JSON Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Anthony Kilna
  • Publisher web site:
  • http://search.cpan.org/~kilna/

Inline::JSON Tags


Inline::JSON Description

JSON is a data specification format used for interoperability with a multitude of languages. Sometimes you have a chunk of YAML that you need to turn into a Perl data structure. Inline::JSON is a Perl module that allows you to specify that code inline within your perl program. It is syntactic sugar on top of the existing JSON module, you could just as easily say: my $json = JSON->new->decode('{ // JSON code here }');Which is what the module is doing internally, it just looks nicer.SYNOPSIS use Inline::JSON; my $json = json: { "name": "Awesome", "title": "Mr.", "skills": }; use Data::Dumper; print Dumper($json);Yields the output like: $VAR1 = { 'name' => 'Awesome', 'title' => 'Mr.', 'skills' => };You can also specify array references as the top-level JSON element, by using brackets instead of curly braces: my $list_of_hashrefs = json: ;Product's homepage


Inline::JSON Related Software