Write save/populate (import/export) functionality

save/populate json from server