[GH-ISSUE #171] Improve high-performance JSON library #168

Closed
opened 2026-03-03 19:15:52 +03:00 by kerem · 1 comment
Owner

Originally created by @NghiaTranUIT on GitHub (Jun 11, 2019).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/171

Originally assigned to: @NghiaTranUIT on GitHub.

🐶 Brief

JSONSerialization has a limitation when parsing float number. It results in 0.00000002 because the float number is represented by NSNumber, and renders in 0.000002. Additionally, it's also they way computer store float number.

We have to find alternative approach to pretty json efficiently.

https://github.com/nlohmann/json could be potential candidates.

👑 Criteria

Originally created by @NghiaTranUIT on GitHub (Jun 11, 2019). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/171 Originally assigned to: @NghiaTranUIT on GitHub. ## 🐶 Brief JSONSerialization has a limitation when parsing float number. It results in `0.00000002` because the float number is represented by NSNumber, and renders in 0.000002. Additionally, it's also they way computer store float number. We have to find alternative approach to pretty json efficiently. https://github.com/nlohmann/json could be potential candidates. ## 👑 Criteria - [x] Integrate this lib as a dependency. Done at https://github.com/ProxymanApp/nlohmann_json_cocoa - [x] Adopt this lib and pretty json - [x] Double check if the float is work or not
kerem 2026-03-03 19:15:52 +03:00
Author
Owner

@NghiaTranUIT commented on GitHub (Jun 12, 2019):

All done. Related to #169

<!-- gh-comment-id:501112391 --> @NghiaTranUIT commented on GitHub (Jun 12, 2019): All done. Related to #169
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#168
No description provided.