Code Monkey home page Code Monkey logo

json2csharpcodegenerator's Introduction

Special Thanks to Our Contributors !!

Updated Pluralization Package & Test cleanup marblekirby

Implemented Immutable Classes Feature
Holly-HaCKer

Implemented Immutable Classes Feature
Jehoel

Assisted in Bug Fixing
tyeth, dogac00

Architecture Overview

Json2CsharpArchitecture drawio The architecture of the project is segmented into two parts.

  • Part 1: Consuming the JSON input. In this phase, the below is generally done:
    • Parse the Json string
    • Create a list of JObjects from the parsed string
    • Create a dictionary of JObject types/ Understand how the json is structured
  • Part 2: Write The Output using the supplied ICodeWriter interface
    • Using the property injected in the JsonClassGenerator class, the corresponding concrete code writer is called and the writing process begins
    • The code write can be configured using the configuration classes in the CodeWriteConfiguration folder
    • Create a dictionary of JObject types/ Understand how the json is structured
    • Finally, the GenerateClasses in the JsonClassGenerator class will return a StringBuilder instance that contains all the written classes

Roadmap

  • Support for dictionaries Json2CSharp#18: The tool should have the option to detect dictionaries, currently dictionaries are treated as classes. Can be done using Markov Chain approach
  • Support for nested arrays Json2CSharp#5: Currently, nested arrays return empty values
  • Support for datetime Json2CSharp#90 ability to detect various types of datetime formats and a setting to turn this feature off

Bug Fixing

1- Choose a problem from the issues labeled "Bug" or "Help Wanted"

2- Clone the repository and build it

3- Create a Unit Test using "CreatTest.ps1" Powershell Script or copy paste existing unit tests and follow naming conventions

  • Use the format to name your unit tests: "[TestNumber]_[DescribeProblem]"**
  • Run the script in Powershell
  • This will create 3 files: the csharp test, the Json Input text file, and the Output C# or JAVA etc.. file alt text
  • Start Debugging, Put some test Json and Get to Know the solution

json2csharpcodegenerator's People

Contributors

json2csharp avatar daiplusplus avatar holly-hacker avatar marblekirby avatar tyeth avatar benbo-slc avatar ahmetcefakar avatar dogac00 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.