changes data storage to JSON