-
Notifications
You must be signed in to change notification settings - Fork 491
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
Add SmallJSONParser to extras #111
Comments
That would be a great add-on! Which way to add it could be discussed though. The most "EOR friendly" way would be to add (parts of) it to @projectgus, @foogod: what do you think? The way in which we add third party modules could need some discussion. Especially as general interest in the project grows and more third party code is added. |
Well, in this particular case, there are really only two files to include, On Monday, 7 March 2016, Johan Kanflo notifications@github.com wrote:
Dag Agren <> paracelsus@gmail.com <> http://wakaba.c3.cx/ |
Thanks @DagAgren! I think either approach is fine in this case, but if @DagAgren thinks there won't be a lot of updates then just copying two files into the tree is probably easiest. @kanflo: Good suggestions, thanks for making them. FWIW the make system allows you to specify Regarding Will be great to have this, I'm thinking it would be neat to update the http_get_mbedtls example to parse the JSON that comes back from the howsmyssl.com API. |
As a JSON parser was included I would like to close this issue if that's alright with all involved. |
jsmn has a number of drawbacks for highly resource-constrained systems that SmallJSONParser doesn't, though. |
I did not know that. In that case it could be of interest to include SmallJSONParser in EOR. I will label this an enhancement and sometime in the future someone might compare the two JSON parsing frameworks. |
It's more a lexer than a parser. It generates a stream of tokens, without needing any memory allocation, which is the big advantage for embedded systems. It may be more cumbersome to use, though, although jsmn isn't that easy either. |
There was a request to add SmallJSONParser to the extras dir, which seems quite a good idea.
I haven't had time to look at it yet, but as a first step I did create a git mirror of the repo here: https://github.com/DagAgren/SmallJSONParser
Would including it as a submodule make any sense, or should it just be copied in directly?
The text was updated successfully, but these errors were encountered: