Added json and learner persistance