Added export option for JSON