Add export (json|xml) feature