Commit 3543bc4
committed
Replace cJSON with lightweight mkjson library
Based on PR #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 a2f3932 commit 3543bc4
6 files changed
+680
-3621
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
0 commit comments