Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Maybe this vscode extension can work for you. It can turn Json samples into structs. this can help you turn typescript to Json. Maybe you can automate it.
Since you're going to need to manually adjust the output anyway, you could see if chaining ts2c and c2rust does something useful to you.
I write a JSON schema and then use Quicktype to generate both the Typescript and Rust types. The documentation isn't great, but it did exactly what I needed it to do.
Related posts
- How do you navigate an api response where you don't know the exact structure?
- Tres herramientas para desarrolladores de software 👌
- Show HN: A tool to Convert JSON schemas into TypeScript classes
- Sharing data types on a multi-language project
- How can I get the ingredients and measurements to display from theMealDB JSON?