Conversation
What kind of tool do I use if I want to automatically generate code in multiple languages for parsing text conforming a (e.g. JSON) schema to objects/structs, based on a given schema?

I already found a bunch of JSON schema validators, but I also want my text->typed object code to be fully generated.

#programming
3
1
0

Sven Slootweg ("still kinky and horny anyway")

@buherator Sounds like Kaitai Struct may be close to what you're looking for?

1
0
0
@joepie91 Kaitai would be useful for creating another JSON parser. What I'm looking for is something that spares me the trouble of validating against a schema and producing e.g. strongly typed objects in Java (instead of a bunch of JSONValue's).
0
0
1
Gemini suggested JSON Type Definitions and jdt-codegen, that looks really good! Unfortunately it doesn't support C/C++, but maybe we can do with linking against Rust libraries?

https://jsontypedef.com/docs/implementations/
0
0
0
@sassdawe Ummm I mean sure I could even use assembly programming to solve this problem, but I'm looking for a tool designed for this particular purpose :) (see jdt-codegen liked above)
0
0
0