added 'generate non formatted json' method and tests for json generation