Loading ...
Sorry, an error occurred while loading the content.

26544datasource JSON string problem

Expand Messages
  • WongTseng
    Feb 29, 2008

          I have a question about the correct JSON string format that a datasource can receive through XHR. One thing puzzling me is that when I format the JSON string without double quotes around the attribute names, the datasource will raise a data error message.
         for example,
             {name: "Tom"} // wrong, data error
         but if I put it like this,
             {"name" : "Toma"} // it's correct, data table displays it nicely.
         So, what is the defference between these two kind of writting? Thanks.

      Best Regards
      Tseng Wong
    • Show all 7 messages in this topic