JsonUtils
JsonUtils copied to clipboard
Json to C#, VB.Net, Javascript and SQL Server Table
Replace "bool" by "boolean" in lines 27 and 35 to use the correct name of the type as per https://www.typescriptlang.org/docs/handbook/basic-types.html
Added DataContract attribute to classes and DataMember attribute with Name to properties when config.UsePascalCase is true and config.PropertyAttribute is DataMember
Changed GetTypeName to return "boolean" instead of "bool" (javascript/typescript uses the full "boolean" instead of the shorter "bool") in TypeScriptCodeWriter.cs.

5 lines are not enough to make sure it is the correct JSON
Let us pick array or List for collection properties in vb/c# outputs.
Hello guys! I've inserted this JSON to the application: `{"?xml":{"@version":"1.0","@encoding":"UTF-8","@standalone":"yes"},"ns2:FeedAcknowledgement":{"@xmlns:ns2":"http://walmart.com/","ns2:feedId":"xxxxxx"}}` And I got this as result:  As you can see it generated the attributes with special caracters... There is...
I added `JsonPropertyNameAttribute` (`JsonPropertyName(string)`) to properties and `SerializableAttribute` (`Serializable`) to all classes I reformated a bit the code