spring-framework / org.springframework.web.servlet.view.json / MappingJackson2JsonView / setJsonpParameterNames

setJsonpParameterNames

open fun setJsonpParameterNames(jsonpParameterNames: MutableSet<String>): Unit

Set JSONP request parameter names. Each time a request has one of those parameters, the resulting JSON will be wrapped into a function named as specified by the JSONP request parameter value.

The parameter names configured by default are "jsonp" and "callback".

Since
4.1

See Also
<a href="http://en.wikipedia.org/wiki/JSONP">JSONP Wikipedia article</a>