alert element to JSON