-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to nlohmann/json from json11 #31093
Conversation
@@ -39,26 +39,25 @@ void recv_log(int thread_cnt, int thread_msg_cnt) { | |||
|
|||
REQUIRE(buf[0] == CLOUDLOG_DEBUG); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test fail, but I'm not sure why it's here in the first place. If you got a JSON as a string, then buf[0] should be '{' right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see
Line 94 in 78e20cf
log_s += (char)levelnum; |
This change should be well-tested by our CI. The last remaining json11 usage is in selfdrive/modeld/thneed. That doesn't build by default on PC, but you can build it with |
Thanks, will do asap |
@adeebshihadeh I hope it's good, it does compile and pass the CI |
Thanks! Want to try #26739? It might be even easier than this one. |
This reverts commit ee03648.
This reverts commit 88757c1.
Description
This is a work in progress to switch to a new JSON library. From json11 to nlohmann/json.
#24523
Verification
I do not posses any hardware so my testing capabilities are quite limited. However the CI and Unit test can give a good indicator.
Some tests in the driving simulator might also be a good idea.