krauchenco/nagioscfg2json — pull request #3 by andreas-marschke (2014-10-07 07:46:47+00:00)
Title: split parse into fromFile() and parse() method

Since parse function previously expected a file to read the configuratin definition from it was very narrow in what it could do and not sensibly split up.

`parse` now takes a String value that it'll turn into a JSON Object. Therefore allowing for a multitude of new sources from which to get and parse Configuration data.

`fromFile` is now a convenience measure to still use the module to simply read a file and parse it.

Calling conventions have not been altered extremely.