Phoenix.Controller.jsonp/3

Parsed documentation:
View on GitHub
Sends a JSON response with JSONP callback support.

It uses the configured `:format_encoders` under the `:phoenix`
application for `:json` to pick up the encoder module.

If the query params contain a key for the callback name, the
response body is wrapped in an invocation of this callback.

The default key for the callback name is `"callback"`. It can be
overridden with the `:callback` option and is expected to be a
string.

Only alphanumeric characters and underscore are allowed in the
callback name. Otherwise an exception is raised.

## Examples

    iex> jsonp conn, %{id: 123}, callback: "cb"
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.