JsonUtils icon indicating copy to clipboard operation
JsonUtils copied to clipboard

Json to C#, VB.Net, Javascript and SQL Server Table

Results 32 JsonUtils issues
Sort by recently updated
recently updated
newest added

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.

![image](https://user-images.githubusercontent.com/838788/161897484-ee0854ab-fa3f-4cdd-b2b2-b36f8e55ba47.png)

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: ![image](https://user-images.githubusercontent.com/6583751/36570382-9d8c70dc-17e6-11e8-9a09-91f9c21b1233.png) 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