When a modal form submission returns a JSON response, the modal will close automatically and handle the JSON accordingly. If the JSON response has a callback
property defined, the callback will be immediately executed.
Inspect the develop console and give it a try!