Added export to JSON.