This project has moved. For the latest updates, please go here.

Double Quotes (instead of single quotes)?

Jun 12, 2014 at 2:09 PM
Hello - Great job on this wrapper. Quick question - I noticed that double quotes are used instead of single quotes. When sent to the browser, the resulting JSON has escape characters e.g., {\"cols\": [{\"type\": .....

Is there a reason why single quotes are not used?
Coordinator
Jun 12, 2014 at 6:51 PM
Edited Jun 12, 2014 at 11:38 PM
Hi,
Thanks a lot.
When building the first version of the wrapper I followed and tried to reproduce the examples given by google. For what I am aware of, the standard JSON notation should use the double quotes, as shown in the following two examples.
However, i believe that the problem you are facing is of another nature. Perhaps this post can help you?

http://stackoverflow.com/questions/9777731/mvc-how-to-return-a-string-as-json

please let me know.

Edit:
I've just published project with two working examples : https://googledatatablelib.codeplex.com/SourceControl/changeset/27248# so please check the usage there, it might be useful to you.
Jun 16, 2014 at 5:17 PM
Thanks for the reply. Yes, I found a good solution here - https://github.com/Factual/factual-csharp-driver/issues/16 (see post dated Dec 9, 2012). I am using WebAPI, and it turns out that you don't want to return a String - you instead need to return a HttpResponseMessage object.