Clean repo and serialize in Json