Нема описа

Benoit Blanchon f6133f2d36 Reduced size by 300 bytes by reusing the JsonPrettyPrint from v3 пре 11 година
doc 2e47d546b2 Writing documentation... пре 11 година
examples b4b475d692 Simplified generator example пре 11 година
include f6133f2d36 Reduced size by 300 bytes by reusing the JsonPrettyPrint from v3 пре 11 година
scripts ac9b776aa1 Fixed remaining cpplint warnings пре 11 година
src f6133f2d36 Reduced size by 300 bytes by reusing the JsonPrettyPrint from v3 пре 11 година
test 1c450fd3aa Fixed floating point value parsing in the form "4e2" or "4E2". пре 11 година
third-party 5c8283b3e4 Added cpplint пре 11 година
.gitignore 24b46af48a Moved build output to bin/ and lib/ пре 11 година
CHANGELOG.md feb6060887 Updated change-log пре 11 година
CMakeLists.txt 7e98d136f4 Added more warning flags for GCC (as suggested in issue #28) пре 11 година
LICENSE.md 7a3fa35bd8 Added LICENSE.md пре 11 година
README.md 49d2b4b2a2 Updated code size пре 11 година
keywords.txt 6e4eb45210 Renamed JsonHashTable into JsonObject пре 11 година
library.properties 699292b058 Arduino example are now compiling пре 11 година

README.md

Arduino JSON library

An elegant and efficient JSON library for embedded systems.

It's design to have the most intuitive API, the smallest footprint and works without any allocation on the heap (no malloc).

It has been written with Arduino in mind, but it isn't linked to Arduino libraries so you can use this library in any other C++ project.

Features

Feature comparison

Library Memory allocation Nested objects Parser size Encoder size
Arduino JSON static yes 2760 Bytes 862 bytes
json-arduino dynamic no 3348 (+21%) not supported
aJson dynamic yes 5088 (+84%) 4678 (+540%)

"Parser size" was measured with a program parsing {"sensor":"outdoor","value":25.6}. For each library, I wrote a program that extracts a string and a float. I subtracted the size of a program doing the same without any JSON parsing involved. Source files are here.

"Encoder size" was measured with a program generating {"sensor":"outdoor","value":25.6}. Source files are here.

In each case the target platform was an Arduino Duemilanove and Arduino IDE 1.0.5 was used.

Links: json-arduino, aJson

Testimonials

From Arduino's Forum user jflaplante:

I tried the [aJson and json-arduino] before trying your library. I always ran into memory problem after a while. I have no such problem so far with your library. It is working perfectly with my web services.

From Arduino's Forum user gbathree:

Thanks so much - this is an awesome library! If you want to see what we're doing with it - the project is located at www.photosynq.org.

From StackOverflow user thegreendroid:

It has a really elegant, simple API and it works like a charm on embedded and Windows/Linux platforms. We recently started using this on an embedded project and I can vouch for its quality.

Related blog posts