A program that generates C source codes to manipulate JSON with strong-typed struct

This page summarizes the projects mentioned and recommended in the original post on /r/C_Programming

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • json-gen-c

    A program to generate C code for json manipulation

  • dscrd

    Discord C library

    This reminded me of code I wrote years ago that does something similar that instead of precompiling struct conversion data it relied on C macros. Here you can see the example usage and here you can find the source code. It was never finished but I guess it works pretty well with basic types and I believe I somewhat managed to make it work with nested structs as well. Macros made debugging not easy :)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • concord

    A Discord API wrapper library made in C

    Interestingly enough I also wrote a C Discord API lib and had a similar 'preprocessor-based' approach! The source code is here, and you can find some usage examples here!

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts