-
Notifications
You must be signed in to change notification settings - Fork 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
pkg: add jsmn minimal JSON parser #5202
Conversation
"a world fastest"? lol |
nice! works perfectly on master, however I don't get output when trying on an |
I saw a project a few days ago that claimed to be the fastest JSON tokenizer by eating anything that roughly resembles JSON. :) E.g. {
"answer": 42,
"key" true_but_actually_only_the_leading_t_is_checked;
"number" -111.hm.not.really
fALSE "actually, why should keys be strings?"
] |
Huh, just tried, works like a charm here. Need to press the reboot button after "make flash term" as the output comes very fast. |
I forget this every time.. |
@cgundogan was that an ACK? :) |
nope, will test again now. |
Works like charm! ACK |
Thanks for reviewing! &go. |
From
https://github.com/zserge/jsmn
:"Jsmn is a world fastest JSON parser/tokenizer."
edit
The supplied test application is a basically unmodified copy of jsmn's
examples/simple.c
. I've just added the license, fixed main's prototype, lowered the token number to adapt to RIOT's little stack and run uncrustify over it.