Fixes flash message size for now.
Saves the content in a JSON file under output directory.

TODO:
Enable unicode data saving using codecs module.