- Add --generate-json=<file> flag to output API metadata as JSON
- JSONSerializer collects all declarations and serializes to JSON
- Includes all types: opaque, typedefs, function pointers, enums, structs, unions, flags, functions
- Tested with SDL_init.h, SDL_video.h, SDL_gpu.h, SDL_pixels.h, SDL_rect.h
- JSON can be queried with jq for API analysis
Note: Minor memory leaks exist in comment duplication, will address separately
- Add --generate-json flag to output structured JSON representation
- JSON includes all parsed types: opaques, typedefs, function pointers,
enums, structs, unions, flags, and functions
- Preserves doc comments and inline comments in JSON output
- Proper JSON escaping for special characters
- Tested with SDL_gpu.h and test_small.h
- Validates as proper JSON format