I am testing out json.net. I would like to use its linq-to-json syntax to return json from a function attributed [WebMethod] but I am getting errors.
I have a .Net object which I\'ve been serializing to Xml and is decorated with Xml attributes.I would now like to serialize the same object to Json, preferably using the Newtonsoft Json.Net library.
There is an API which I don\'t control, but whose output I need to consume with C#, preferably using JSON.Net.
I need to get JSON { \"question\":\"q1\", \"answ开发者_开发技巧ers\": { 1:\"ans1\", 2:\"ans2\", 3:\"ans3\"
I am trying to convert some JSON to XML and 开发者_C百科then save it using JSON.NET in C# but i can\'t seem to get it.
For some endpoints SimpleGeo.com returns something like this: { \"geometry\":{ \"type\":\"Point\", \"coordinates\":[
I\'m sending a JSON collection from Javascript through a REST web service to be Deserialized using Json.NET and then finally updated in the DB using NHibernate (I\'m using Fluent).
Here is my class public class Agency { private IList<AgencyCommission> _commission; public Agency()
Is it possible to return a dynamic object from a json deserialization using json.net? I would like to do something like this:
I want certain properties to be serialized as \'objects\' and not strings. E.g. {\"onClickHandler\": OnClickHandler,