Skip to content

A generator that can convert JSON and XML data into VB and C# classes.

License

Notifications You must be signed in to change notification settings

akesseler/ModelGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Model Generator

The Plexdata Model Generator is a program that is able to generate source code files for C# and Visual Basic which are based on pure JSON and/or XML files.

Licensing

The software has been published under the terms of MIT License.

Downloads

The latest release can be obtained from https://github.com/akesseler/modelgenerator/releases/latest.

The master branch can be downloaded as ZIP from https://github.com/akesseler/modelgenerator/archive/master.zip.

Known Bugs

Under some circumstances it is possible that a generated class contains an item of some type as well as a list of that type. In such a case it will be necessary to remove the redundant item manually. Here an example.

Source XML

<LabelCollection>
  <Label>Business</Label>
</LabelCollection>

...

<LabelCollection>
  <Label>Fax</Label>
  <Label>Business</Label>
</LabelCollection>

Generated Class

[XmlRoot("LabelCollection")]
public class LabelCollection
{
  [XmlElement("Label")]
  public Label Label { get; set; } // Must be removed manually.

  [XmlElement("Label")]
  public List<Label> Labels { get; set; }
}

The reason behind, the generator is unable at the moment to distinguish between item types and a list of items of the same type.

About

A generator that can convert JSON and XML data into VB and C# classes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published