summaryrefslogtreecommitdiff
path: root/src/json.hh
AgeCommit message (Collapse)Author
2024-08-12Reduce headers dependency graphMaxime Coste
Move more code into the implementation files to reduce the amount of code pulled by headers.
2023-11-03Add support for 0-padding in format and replace uses of sprintfMaxime Coste
2019-11-17src: Move JSON parsing code to its own fileFrank LENORMAND
The `json_ui.cc` file contained both data-parsing and UI-related code. This commit moves the JSON parsing code to its own `json.cc` file, to separate concerns, make compilation faster when changes are made to either UI or parsing code, and make the parsing code more accessible to fuzzers. The signature of the following function: ``` auto parse_json(StringView json); ``` was changed to: ``` JsonResult parse_json(StringView json); ``` to avoid `auto` deduction issues at compile-time.