Moved load json up to a class method