Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

what does d in json mean

what does d in json mean  using -',jquery,ajax,json'

I have a .NET webmethod that I have called from jQuery.  The method returns some HTML markup that I display within a DIV element.

Once I have the response I use


My question is, what does the .d do? I don't like using code I don't fully understand?  Could I get the same result using Eval?

asked Oct 13, 2015 by vijayshukla80
0 votes

Related Hot Questions

Government Jobs Opening

C# Code Here:

public partial class Contact : Page
        protected void Page_Load(object sender, EventArgs e)
            if (!IsPostBack)
            int[] arr1 = new int[] { 1, 2 };
            ListBox1.SelectedValue = "1";
            ListBox1.SelectedValue = "4";


        void BindList()

            List lst = new List()
                new Product{Id=1,Name="Photo"},
                new Product{Id=2,Name="Photo"},
                new Product{Id=3,Name="Photo"},
                new Product{Id=4,Name="Photo"}
            ListBox1.DataSource = lst;
            ListBox1.DataTextField = "Name";
            ListBox1.DataValueField = "Id";

        public static string GetProducts()
            // instantiate a serializer
            JavaScriptSerializer TheSerializer = new JavaScriptSerializer();

            //optional: you can create your own custom converter
           // TheSerializer.RegisterConverters(new JavaScriptConverter[] { new MyCustomJson() });

            //var products = context.GetProducts().ToList();
            Product products = new Product() { Id = 1, Name = "Testing Services" };
            var TheJson = TheSerializer.Serialize(products);

            return TheJson;

answered Oct 13, 2015 by ajit.chavhan
0 votes

As others have pointed out, it returns the "d" member of the "result" object.
If you wanted to have "d" in a variable you could use this:

var property = "d";
var value = result[property];
answered Oct 13, 2015 by sachin valanju
0 votes

Its is very clear that $("#div").html(result.d); in your code

"result" is a object and d is property of "result".

Let explain,

if you create object like this,

var result{"id": "number", "d": "day"};

if we access the property of result is that using jquery


so we get result in html is

answered Oct 13, 2015 by r3tt