This function is intended to format the filetype argument of
shinySaveButton() into a json string representation, so that it
can be attached to the button.
This function is intended to format the filetype argument of
shinySaveButton() into a json string representation, so that it
can be attached to the button.