Import and export to JSON.