Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jsonp is not in expected format  RSS feed

 
joseph prabhu
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code i have written to get the data and to format in jsonp format. is below




The expected output in jsp is

callback({"q":["A","B"]})

But my output is

callback(["A","B"]).

Please help how to format is
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!