convert Key to string to make it JSON serializable