move JSONoutput around. Unit test 3 units