Convert C# Object to JSON string

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 void...

Continue Reading Gopinath’s Article on their blog

Convert C# Object to JSON string

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 void Main(string[] args) { MyClass…

Blog Syndicated with Gopinath’s Permission

Author: Gopi Nath

Share This Post On