Hi Everyone,
Check this post for Convert JSON object to C# Object.
Here is the easy way to convert C# to JSON String without using external references.
[DataContract]
public class MyClass
{
[DataMember]
public string
Firstname { get; set; }
[DataMember]
public string Lastname
{ get; set; }
}
static
↧