Commit b53096c
committed
Replace cJSON with lightweight mkjson library
Based on PR mvp#575 feedback, this commit replaces the large cJSON library
with the much smaller mkjson library for JSON output generation.
Changes:
- Replace cJSON (3,443 lines) with mkjson (357 lines) - ~10x reduction
- Optimize JSON output to only emit true boolean flags
- Use shorter field names (vid, pid, nports, ppps)
- Fix code style issues (remove stdbool.h, change ret to rc)
- Fix USB Full Speed detection for USB 2.0 devices
- Add USB speed reference citation
- Add missing newline at end of Makefile
The JSON output format remains compatible while significantly reducing
the library size as requested.1 parent ec1d293 commit b53096c
6 files changed
+680
-3622
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
0 commit comments