Config 2.3: JSONP Types

JSONP is a special JSON data type that bypasses CORS (Cross Origin Resource Sharing) rules. To define JSONP, assign Short to be jsonp.

Meanwhile, you need to assign a proper callback function name. Put this name in config.json:

Callback_name     default:"callback"

Then the JSON data returned will be wrapped as argument to the function i.e.:


By properly define callback in Javascript, you can manipulate the data as you want.

JSONP is an obsolete solution to CORS, which Genelet also supports. See Section 5.1.