cleaning main function.
doing all work with json in implemented JProcess class
custom exception