I am creating a C # WCF web service that returns a lot of data in JSON format. Client is an iPad app that is currently being developed by another team. Therefore, I am working on specifications, without example data.
Currently, the JSON string is created by the .net framework, my web service returns a C # object containing all the information, which is then serialized by the framework using DataContracts.
My problem is that the communication specifications contain only JSON Schema files (based on http://json-schema.org/ ). To facilitate development, I would like to generate the corresponding classes in C #, but since the files contain quite a lot of information, and there are a dozen files, I really do not want to create these classes manually.
So, I am looking for a tool that would allow me:
- To generate C # classes from a JSON schema.
- Convert JSON schema to XSD file. Then it would be easy to create classes, since there are many tools for generating classes from XSD.
I found many tools for checking a JSON string against a JSON schema or for creating classes from a JSON string, but nothing seems to me to be of any help.
There is JSON.NET , but it seems to be a library, not a tool, and I did not find any information on creating classes with it.
So, if anyone knows the tools or has an idea of ββhow I can generate these classes (I tried a tool that created classes in Java, but I could not get it to work).
Julien N Jun 15 2018-11-11T00: 00Z
source share