cjson 需要占用3k的 動態內存 https://github.com/woody5418/STM32F103C8T6_cJson
其次設置keil 為C99
https://blog.csdn.net/qq_40860986/article/details/89955634
struct2json 使用 相對方便一點
https://github.com/armink/struct2json
實例是 兩個的綜合體
最終的 代碼變大了40kb 所以這些個算法還剩很占flash的, 使用之前需要全局考慮一下代價