Skip to content

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

https://staturestack.com/2020/09/18/convert-c-object-to-json-string/

Blog Syndicated with Gopinath’s Permission

Leave a Reply