I am trying to do some coding, further manipulations, blah blah and finally get json object and return a Jsonp(json object wrapped in javascript function)
I managed to create till json object which is
js_on = {"name": "xxx","job":"unemployed", "remarks": "enjoying_life"}.
I am stuck at doing JSONP part. The tutorials I read are pretty confusing and demands many lines of coding. Is it really that complicated or is there any simpler way to do that? my code for JSONP starts with the following.
callback = request.GET.get('callback')
if callback:
......
......
return(HttpResponse(...,content_type ='application/javascript'))
On server side I am using Python and Django framework. Thanks.