Dataset class.

Added methods for import export from JSON.