I am trying to make a WCF call to a function that takes a single String parameter. When I pass parameters from jQuery, I use JSON.stringify (parameters), where parameters is the name: a collection of values ββcontaining the parameters that I want to pass.
My doubts:
- In my version of IE, JSON is not defined. So, I used the JSON2.js library and included it in the main page of my site.
- I am still facing the same message. JSON undefined in IE.
Ok, it works fine in Google Chrome.
PS - it's all on .NET.
Script name is json2.js . The values ββI pass in jQuery are
data:JSON2.stringify(parameters), contentType: "application/json2; charset=utf-8", dataType: "json2"
I am using IE8. (Sorry for not submitting this item before, just added)
Please inform.
source share