modified logger to handle json, added helper to convert json files to a valid json format
by prefixing the json into an array, and postfixing the file with array closures.