Added possibility to work with JSON files.