making saved data match json format