Refs #5992 Changed Import/Export view to JSON functionality

More fixes and unittests