Changed protected methods to public so I could use the library to dump data to json in using cli script.