it-tools icon indicating copy to clipboard operation
it-tools copied to clipboard

Json to C# Update

Open RiisDev opened this issue 10 months ago • 6 comments

What type of request is this?

New feature for an existing tool

Clear and concise description of the feature you are proposing

Update the current conversion tool to support Record Types, as well as json serialization using System.Text.Json instead of just NewtonSoft

Is their example of this tool in the wild?

I use this website in particular and I'd love to see it implemented into IT-Tools, especially all the options it provides

https://json2csharp.com/

Additional context

I found that a sub-fork has this option semi implemented, but using C# classes and only newtonsoft, but new recommendations say to use the record class type with the built in System.Text.Json namespace

Validations

  • [x] Check the feature is not already implemented in the project.
  • [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • [x] Check that the feature can be implemented in a client side only app (IT-Tools is client side only, no server).

RiisDev avatar Feb 13 '25 23:02 RiisDev

Hi @RiisDev , as the author of sub fork, will probably update

sharevb avatar Feb 18 '25 17:02 sharevb

Hi @RiisDev , as the author of sub fork, will probably update

Any further updates on this?

RiisDev avatar Mar 07 '25 14:03 RiisDev

Hi @RiisDev , started rewriting npm package with https://json2csharp.com/ options

sharevb avatar Mar 07 '25 16:03 sharevb

Hi @RiisDev , you can take a look at : https://sharevb-it-tools.vercel.app/json-to-csharp (may be need Ctrl+F5)

And if you arr interested in up to date version of it-tools, I made kind of a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools) and I integrated your fix

sharevb avatar Mar 08 '25 21:03 sharevb

Hi @RiisDev , you can take a look at : https://sharevb-it-tools.vercel.app/json-to-csharp (may be need Ctrl+F5)

And if you arr interested in up to date version of it-tools, I made kind of a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools) and I integrated your fix

Perfect! You're the best, running the docker now. one thing I was wondering, is there a way we can expand the width of the json-to-csharp panels as it standard is very very very crunched, which still I don't mind just thoughts!

RiisDev avatar Mar 09 '25 04:03 RiisDev

Hi @RiisDev, latest versions for my fork should be now more "wide"

sharevb avatar Apr 19 '25 14:04 sharevb