Config::JSON

Config::JSON is a JSON based config file system.
Download

Config::JSON Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • JT Smith
  • Publisher web site:
  • http://search.cpan.org/~rizen/Config-JSON-1.0.3/lib/Config/JSON.pm

Config::JSON Tags


Config::JSON Description

Config::JSON is a JSON based config file system. Config::JSON is a JSON based config file system.SYNOPSIS use Config::JSON; my $config = Config::JSON->create($pathToFile); my $config = Config::JSON->new($pathToFile); my $element = $config->get($param); $config->set($param,$value); $config->delete($param); $config->deleteFromHash($name, $key); $config->deleteFromArray($name, $value); $config->addToHash($name, $key, $value); $config->addToArray($name, $value); my $path = $config->getFilename;Example Config File # config-file-type: JSON 1 { "dsn" : "DBI:mysql:test", "user" : "tester", "password" : "xxxxxx", # some colors to choose from "colors" : , # some statistics "stats" : { "health" : 32, "vitality" : 11 } } Note that you can put comments in the config file as long as # is the first non-space character on the line. However, if you use this API to write to the config file, your comments will be eliminated. Requirements: · Perl


Config::JSON Related Software